NCBI C++ ToolKit
|
Search Toolkit Book for CConditionVariable
#include <corelib/ncbimtx.hpp>
Public Member Functions | |
CConditionVariable (void) | |
~CConditionVariable (void) | |
bool | WaitForSignal (CMutex &mutex, const CDeadline &deadline=CDeadline::eInfinite) |
Release mutex and lock the calling thread until the condition variable is signalled. More... | |
bool | WaitForSignal (CFastMutex &mutex, const CDeadline &deadline=CDeadline::eInfinite) |
Release mutex and lock the calling thread until the condition variable is signalled. More... | |
void | SignalSome (void) |
Wake at least one of the threads that are currently waiting on this condition variable (if any threads are waiting on it). More... | |
void | SignalAll (void) |
Wake all threads that are currently waiting on the condition variable. More... | |
Static Public Member Functions | |
static bool | IsSupported (void) |
Private Member Functions | |
bool | x_WaitForSignal (SSystemFastMutex &mutex, const CDeadline &timeout) |
Private Attributes | |
CONDITION_VARIABLE | m_ConditionVar |
CAtomicCounter_WithAutoInit | m_WaitCounter |
SSystemFastMutex *volatile | m_WaitMutex |
Definition at line 1440 of file ncbimtx.hpp.