OnixS C++ CME MDP Conflated TCP Handler 1.3.6
API Documentation
Loading...
Searching...
No Matches
Condition Class Reference

Public Member Functions

 Condition ()
 ~Condition ()
void signal ()
void signalAll ()
void wait (Mutex &lock)

Detailed Description

Condition variable enables threads to atomically block and test condition under protection of mutual exclusion lock (Mutex) until condition is satisfied.

Definition at line 36 of file Condition.h.

Constructor & Destructor Documentation

◆ Condition()

Condition ( )

Initializes the instance.

◆ ~Condition()

~Condition ( )

Destructs the instance.

Member Function Documentation

◆ signal()

void signal ( )

Signals one waiting thread.

◆ signalAll()

void signalAll ( )

Signals all waiting threads.

◆ wait()

void wait ( Mutex & lock)

Blocks on a condition.

Parameters
lockRepresents a reference to Mutex that is used to protect the condition testing.