摘要:
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 阅读全文