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