Lua threads aren't OS threads; they're just coroutines. I suggest you try something like Lua Lanes for your multithreading needs. -Rob On 2010年1月20日 01:59:39 +0800 (CST) brianyao <brianyao@126.com> wrote: > Recently ,I want to load some script and also register some > cfunctions to the MasterState( generated by luaL_Create ).Then I > Create a lot of Threads (Posix Local Thread) with one ThreadState per > thread.The ThreadState is created with lua_newthread(MasterState) > before launch all the threads.I'm wondering,If it is multhreaded > safe,if every ThreadState just run functions in MasterState > enviroment which guaranteed not modify the global shared datas in > MasterState. Can anybody help me ! thanks. >
Attachment:
signature.asc
Description: PGP signature