NCBI C++ ToolKit
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
CConditionVariable Class Reference

Search Toolkit Book for CConditionVariable

#include <corelib/ncbimtx.hpp>

+ Collaboration diagram for CConditionVariable:

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
 

Detailed Description

Definition at line 1440 of file ncbimtx.hpp.


The documentation for this class was generated from the following files:
Modified on Sun Feb 25 03:04:26 2024 by modify_doxy.py rev. 669887