Lua yield allows waiting for threads in Lua?
#8
(02-02-2013, 11:45 PM)STR_Warrior Wrote: soo MCServer now supports C++ and lua for plugins or am i misunderstanding?

You are misunderstandingTongue

In MCServer the Lua plugins are accessed by many different threads and through the plugins each thread has access to data that is owned by other threads.

For example you can say world data is owned by the tick thread, but the WebAdmin also has access to this data even though it is being executed from another thread.

The problem with this is that Lua plugins can only be accessed by a single thread at a time. When a certain situation happens, this can cause MCServer to hang (a deadlock). What I found out is a way to allow multiple threads to access plugins at the same time (well not exactly but close enough) which should eliminate all possibilities of deadlocks created by plugins
Reply
Thanks given by: xoft , Taugeshtu , bearbin , NiLSPACE


Messages In This Thread
RE: Lua yield allows waiting for threads in Lua? - by FakeTruth - 02-03-2013, 12:52 AM



Users browsing this thread: 4 Guest(s)