mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-15 16:26:08 +00:00
Rewritten Threading system using c++11 std instead of ACE
It also allow full compilation with clang under all supported platforms Need tests
This commit is contained in:
@@ -51,7 +51,7 @@ void WorldRunnable::run()
|
||||
avgDiffTracker.Update(executionTimeDiff > WORLD_SLEEP_CONST ? executionTimeDiff : WORLD_SLEEP_CONST);
|
||||
|
||||
if (executionTimeDiff < WORLD_SLEEP_CONST)
|
||||
ACE_Based::Thread::Sleep(WORLD_SLEEP_CONST-executionTimeDiff);
|
||||
ACORE::Thread::Sleep(WORLD_SLEEP_CONST-executionTimeDiff);
|
||||
|
||||
#ifdef _WIN32
|
||||
if (m_ServiceStatus == 0)
|
||||
@@ -118,7 +118,7 @@ void AuctionListingRunnable::run()
|
||||
}
|
||||
}
|
||||
}
|
||||
ACE_Based::Thread::Sleep(1);
|
||||
ACORE::Thread::Sleep(1);
|
||||
}
|
||||
sLog->outString("Auction House Listing thread exiting without problems.");
|
||||
}
|
||||
|
||||
@@ -12,13 +12,13 @@
|
||||
#define __WORLDRUNNABLE_H
|
||||
|
||||
/// Heartbeat thread for the World
|
||||
class WorldRunnable : public ACE_Based::Runnable
|
||||
class WorldRunnable : public ACORE::Runnable
|
||||
{
|
||||
public:
|
||||
void run();
|
||||
};
|
||||
|
||||
class AuctionListingRunnable : public ACE_Based::Runnable
|
||||
class AuctionListingRunnable : public ACORE::Runnable
|
||||
{
|
||||
public:
|
||||
void run();
|
||||
|
||||
Reference in New Issue
Block a user