mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Change more ace_guard to trinity_guard
This commit is contained in:
@@ -81,7 +81,7 @@ int MapUpdater::deactivate()
|
||||
|
||||
int MapUpdater::wait()
|
||||
{
|
||||
ACE_GUARD_RETURN(ACE_Thread_Mutex, guard, m_mutex, -1);
|
||||
TRINITY_GUARD(ACE_Thread_Mutex, m_mutex);
|
||||
|
||||
while (pending_requests > 0)
|
||||
m_condition.wait();
|
||||
@@ -91,7 +91,7 @@ int MapUpdater::wait()
|
||||
|
||||
int MapUpdater::schedule_update(Map& map, ACE_UINT32 diff)
|
||||
{
|
||||
ACE_GUARD_RETURN(ACE_Thread_Mutex, guard, m_mutex, -1);
|
||||
TRINITY_GUARD(ACE_Thread_Mutex, m_mutex);
|
||||
|
||||
++pending_requests;
|
||||
|
||||
@@ -113,7 +113,7 @@ bool MapUpdater::activated()
|
||||
|
||||
void MapUpdater::update_finished()
|
||||
{
|
||||
ACE_GUARD(ACE_Thread_Mutex, guard, m_mutex);
|
||||
TRINITY_GUARD(ACE_Thread_Mutex, m_mutex);
|
||||
|
||||
if (pending_requests == 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user