Public Member Functions

cmtk::ConditionVariable Class Reference
[cmtkSystem Library]

Condition variable for thread synchronization. More...

#include <cmtkConditionVariable.h>

Inheritance diagram for cmtk::ConditionVariable:
Inheritance graph
[legend]
Collaboration diagram for cmtk::ConditionVariable:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ConditionVariable ()
 Constructor.
 ~ConditionVariable ()
 Destructor.
void Wait ()
 Wait for condition variable.
void Signal ()
 Signal condition variable.
void Broadcast ()
 Broadcast signal condition variable.

Detailed Description

Condition variable for thread synchronization.

Definition at line 51 of file cmtkConditionVariable.h.


Constructor & Destructor Documentation

cmtk::ConditionVariable::ConditionVariable (  ) [inline]

Constructor.

Definition at line 57 of file cmtkConditionVariable.h.

References NULL.

cmtk::ConditionVariable::~ConditionVariable (  ) [inline]

Destructor.

Definition at line 65 of file cmtkConditionVariable.h.


Member Function Documentation

void cmtk::ConditionVariable::Broadcast (  ) [inline]

Broadcast signal condition variable.

This will unblock all waiting threads.

Definition at line 93 of file cmtkConditionVariable.h.

void cmtk::ConditionVariable::Signal (  ) [inline]

Signal condition variable.

This will unblock at least one waiting thread.

Definition at line 83 of file cmtkConditionVariable.h.

void cmtk::ConditionVariable::Wait (  ) [inline]

Wait for condition variable.

Definition at line 73 of file cmtkConditionVariable.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines