10#include <condition_variable>
18using std::condition_variable;
30 void Release(
uint inNumber = 1);
33 void Acquire(
uint inNumber = 1);
36 inline int GetValue()
const {
return mCount.load(std::memory_order_relaxed); }
39#ifdef JPH_PLATFORM_WINDOWS
46 condition_variable mWaitVariable;
47 atomic<int> mCount { 0 };
#define JPH_EXPORT
Definition Core.h:236
#define JPH_CACHE_LINE_SIZE
Definition Core.h:486
#define JPH_SUPPRESS_WARNINGS_STD_BEGIN
Definition Core.h:384
#define JPH_SUPPRESS_WARNINGS_STD_END
Definition Core.h:396
unsigned int uint
Definition Core.h:446
#define JPH_NAMESPACE_END
Definition Core.h:379
#define JPH_NAMESPACE_BEGIN
Definition Core.h:373
Definition Semaphore.h:23
int GetValue() const
Get the current value of the semaphore.
Definition Semaphore.h:36