20 #ifndef ESSENTIA_THREADING_H
21 #define ESSENTIA_THREADING_H
68 CRITICAL_SECTION criticalSection;
70 ForcedMutex() { InitializeCriticalSection(&criticalSection); }
71 ~ForcedMutex() { DeleteCriticalSection(&criticalSection); }
72 void lock() { EnterCriticalSection(&criticalSection); }
73 void unlock() { LeaveCriticalSection(&criticalSection); }
Definition: threading.h:95
~ForcedMutexLocker()
Definition: threading.h:100
ForcedMutex & _mutex
Definition: threading.h:97
ForcedMutexLocker(ForcedMutex &mutex)
Definition: threading.h:99
Definition: threading.h:80
void unlock()
Definition: threading.h:90
void lock()
Definition: threading.h:89
~ForcedMutex()
Definition: threading.h:88
pthread_mutex_t pthreadMutex
Definition: threading.h:82
ForcedMutex()
Definition: threading.h:84
Definition: threading.h:51
MutexLocker(Mutex &mutex)
Definition: threading.h:53
void release()
Definition: threading.h:54
void acquire(Mutex &)
Definition: threading.h:55
Definition: threading.h:45
void unlock()
Definition: threading.h:48
void lock()
Definition: threading.h:47
Definition: algorithm.h:28