From 42a3cd60d400891b3bd43c3ed2475df25b7b7e21 Mon Sep 17 00:00:00 2001 From: faketruth Date: Wed, 22 Feb 2012 15:15:44 +0000 Subject: Added a CriticalSection to cPlugin_NewLua. Lua plugins are not threadsafe but they ARE accessed by multiple threads, this can create some hard to find errors, but I fixed it now :P git-svn-id: http://mc-server.googlecode.com/svn/trunk@311 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cPlugin_NewLua.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/cPlugin_NewLua.h') diff --git a/source/cPlugin_NewLua.h b/source/cPlugin_NewLua.h index d88f7bdf0..f778cddfa 100644 --- a/source/cPlugin_NewLua.h +++ b/source/cPlugin_NewLua.h @@ -42,6 +42,8 @@ private: typedef std::list< cWebPlugin_Lua* > WebPluginList; WebPluginList m_WebPlugins; + cCriticalSection m_CriticalSection; + std::string m_Directory; lua_State* m_LuaState; };//tolua_export \ No newline at end of file -- cgit v1.2.3