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:492
#define JPH_SUPPRESS_WARNINGS_STD_BEGIN
Definition: Core.h:383
#define JPH_SUPPRESS_WARNINGS_STD_END
Definition: Core.h:395
unsigned int uint
Definition: Core.h:452
#define JPH_NAMESPACE_END
Definition: Core.h:378
#define JPH_NAMESPACE_BEGIN
Definition: Core.h:372
Definition: Semaphore.h:23
int GetValue() const
Get the current value of the semaphore.
Definition: Semaphore.h:36