SpiecsEngine
 
Loading...
Searching...
No Matches

◆ Sign()

void Spices::semaphore::Sign ( int sign)
inline

Sign this semaphore with specific value.

Parameters
[in]sign.

Definition at line 34 of file Semaphore.h.

35 {
36 std::unique_lock<std::mutex> lock(m_Mutex);
37
38 m_Sign = sign;
39 m_Cond.notify_one();
40 }
std::mutex m_Mutex
Mutex of this semaphore.
Definition Semaphore.h:82
std::atomic_int m_Sign
Sign of this semaphore.
Definition Semaphore.h:77
std::condition_variable m_Cond
condition variable of this semaphore.
Definition Semaphore.h:87

References m_Cond.

Referenced by SpicesTest::TEST(), and SpicesTest::TEST().