mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
Clean-up Eluna lock macro.
This commit is contained in:
@@ -26,7 +26,7 @@ LuaEvent::~LuaEvent()
|
|||||||
|
|
||||||
void LuaEvent::Execute()
|
void LuaEvent::Execute()
|
||||||
{
|
{
|
||||||
ELUNA_LOCK(*events->E);
|
LOCK_ELUNA;
|
||||||
// In multithread get map from object and the map's lua state
|
// In multithread get map from object and the map's lua state
|
||||||
lua_rawgeti((*events->E)->L, LUA_REGISTRYINDEX, funcRef);
|
lua_rawgeti((*events->E)->L, LUA_REGISTRYINDEX, funcRef);
|
||||||
Eluna::Push((*events->E)->L, funcRef);
|
Eluna::Push((*events->E)->L, funcRef);
|
||||||
|
|||||||
306
HookMgr.cpp
306
HookMgr.cpp
File diff suppressed because it is too large
Load Diff
@@ -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);
|
template<> ElunaObject* Eluna::CHECKOBJ<ElunaObject>(lua_State* L, int narg, bool error);
|
||||||
|
|
||||||
#define sEluna Eluna::GEluna
|
#define sEluna Eluna::GEluna
|
||||||
#define ELUNA_LOCK(E) Eluna::Guard __guard(Eluna::lock);
|
#define LOCK_ELUNA Eluna::Guard __guard(Eluna::lock)
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user