Clean-up Eluna lock macro.

This commit is contained in:
Patman64
2015-01-05 22:52:46 -05:00
parent e2f81b7336
commit 15f161fa1e
3 changed files with 155 additions and 155 deletions

View File

@@ -26,7 +26,7 @@ LuaEvent::~LuaEvent()
void LuaEvent::Execute()
{
ELUNA_LOCK(*events->E);
LOCK_ELUNA;
// In multithread get map from object and the map's lua state
lua_rawgeti((*events->E)->L, LUA_REGISTRYINDEX, funcRef);
Eluna::Push((*events->E)->L, funcRef);

File diff suppressed because it is too large Load Diff

View File

@@ -459,5 +459,5 @@ template<> WorldObject* Eluna::CHECKOBJ<WorldObject>(lua_State* L, int narg, boo
template<> ElunaObject* Eluna::CHECKOBJ<ElunaObject>(lua_State* L, int narg, bool error);
#define sEluna Eluna::GEluna
#define ELUNA_LOCK(E) Eluna::Guard __guard(Eluna::lock);
#define LOCK_ELUNA Eluna::Guard __guard(Eluna::lock)
#endif