10#include <condition_variable>
18using std::condition_variable;
39#ifdef JPH_PLATFORM_WINDOWS
46 condition_variable mWaitVariable;
#define JPH_CACHE_LINE_SIZE
Definition Core.h:334
#define JPH_SUPPRESS_WARNINGS_STD_BEGIN
Definition Core.h:245
#define JPH_SUPPRESS_WARNINGS_STD_END
Definition Core.h:255
unsigned int uint
Definition Core.h:309
#define JPH_NAMESPACE_END
Definition Core.h:240
#define JPH_NAMESPACE_BEGIN
Definition Core.h:234
Definition Semaphore.h:23
Semaphore()
Constructor.
Definition Semaphore.cpp:24
~Semaphore()
Definition Semaphore.cpp:31
void Acquire(uint inNumber=1)
Acquire the semaphore inNumber times.
Definition Semaphore.cpp:60
int GetValue() const
Get the current value of the semaphore.
Definition Semaphore.h:36
void Release(uint inNumber=1)
Release the semaphore, signalling the thread waiting on the barrier that there may be work.
Definition Semaphore.cpp:38