Lua and threading
Seeing Niwashi's question about table deletes got me thinking about a different problem...one that's a bit harder to test, so I'll see if anyone knows before I build some elaborate test case.
Seeing as LotRO's Lua implementation supports asynchronous event handlers, it raises the possibility that we might have threading issues - where the event handler for one event is, say manipulating a table, while another event handler gets called and attempt to manipulate the same table. How is thread-safety implemented in Lua, or LotRO's Lua? Are all event handler calls executed to completion before the next one can start, in a single threaded FIFO queue?
|