lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


One more hurdle on my way into Lua...

My app needs to run several threads (4 to begin with). I've thought of
assigning them separate Lua states but is this safe? The C code they are
controlling is multithreading safe and handles necessary conflicts but
still, the Lua machines are supposed to be running "concurrently" in the
real sense of the word. And they do need to!

The FAQ says "The next version will probably bring support for external
multithreading and coroutines. " Is this so and do I need to run
single-threaded until then?

- Asko

P.S. I know of LuaState etc. on Windows but wouldn't like to start using
some "fork" of the main project, unless I have to.

--
Asko Kauppi
Flextronics Design Finland
Box 23, 39201 Kyröskoski, Finland
www.flextronics.com 
PGP: 8348 2AE1 CEDC C81A 2255  2439 E4C8 7308 825E 32C3


###########################################
This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange.