cPluginManager:GetLuaPlugin() and lua_State
#8
(06-07-2012, 04:26 AM)FakeTruth Wrote: Like I said, a generic string function can be added which can be called on plugins by other plugins, but it's hardly ideal

I'm starting to doubt this is even possible.

Plugin hooks are called from various threads, and Lua is not threadsafe by itself (at least that's what I gathered). MCServer locks a CriticalSection for each plugin separately when a hook is called on the plugin. If two plugins from two different threads were to call a function on each other at the same time it would result in a deadlock.
Reply
Thanks given by:


Messages In This Thread
RE: cPluginManager:GetLuaPlugin() and lua_State - by FakeTruth - 06-09-2012, 01:08 AM



Users browsing this thread: 8 Guest(s)