Using LUA with C++
原文链接:http://www.spheregames.com/index.php?p=templates/pages/tutorials
作者:http://www.spheregames.com
翻译:飘飘白云(http://www.cppblog.com/kesalin )
译注:翻译本文并未获得 ...……
lua的corroutine学习
function receive (prod)
local status, value = coroutine.resume(prod)
return value
end
function send (x)
coroutine.yield(x)
end
function producer ()……