OnixS C++ FIX Engine 4.14.0
Users' manual and API documentation
Loading...
Searching...
No Matches
Condition Class Reference

#include <OnixS/FIXEngine/Threading/Condition.h>

Public Member Functions

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

Detailed Description

The condition variable - a synchronization objects that allows threads to wait for certain events (conditions) to occur.

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

Definition at line 33 of file Condition.h.

Constructor & Destructor Documentation

◆ Condition()

Condition ( )

Initializes the instance.

◆ ~Condition()

~Condition ( )

Destructs the instance.

Member Function Documentation

◆ signal()

void signal ( )

Signals the one waiting thread.

◆ signalAll()

void signalAll ( )

Signals all waiting threads.

◆ wait()

void wait ( Mutex & lock)

Blocks on a condition.

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