摘要: 1.lua_State : per thread state 相当于一个堆栈,lua执行时放到lua_State上执行,相当于多线程中单个线程2.global_State:global state, shared by all threads of this state 一个程序实例,相当于一个进程3.tb->hash[h]=obj2gco(ts) 将TString强转成GCObjectunion GCObject { GCheader gch; union TString ts;}GCObject *next = p->gch.next 神奇!!!4. lua_newthread 阅读全文
posted @ 2012-03-26 10:03 brucexu 阅读(355) 评论(0) 推荐(0) 编辑