mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-19 08:38:20 +00:00
weird #ifdef pattern, reorganized and cleaned it up. easier to understand now.
This commit is contained in:
+5
-10
@@ -20,14 +20,6 @@
|
|||||||
#include "Condition.h"
|
#include "Condition.h"
|
||||||
|
|
||||||
#ifdef _WINDOWS
|
#ifdef _WINDOWS
|
||||||
#else
|
|
||||||
#include <pthread.h>
|
|
||||||
#include <sys/time.h>
|
|
||||||
#include <errno.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef _WINDOWS
|
|
||||||
|
|
||||||
|
|
||||||
Condition::Condition()
|
Condition::Condition()
|
||||||
{
|
{
|
||||||
@@ -87,8 +79,10 @@ void Condition::Wait()
|
|||||||
LeaveCriticalSection(&CSMutex);
|
LeaveCriticalSection(&CSMutex);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#else
|
||||||
#else //!WIN32
|
#include <pthread.h>
|
||||||
|
#include <sys/time.h>
|
||||||
|
#include <errno.h>
|
||||||
|
|
||||||
Condition::Condition()
|
Condition::Condition()
|
||||||
{
|
{
|
||||||
@@ -151,3 +145,4 @@ Condition::~Condition()
|
|||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user