DUECA/DUSIME
Loading...
Searching...
No Matches
Public Member Functions | List of all members
dueca::Condition Class Reference

Wait and resume object. More...

#include <Condition.hxx>

Public Member Functions

 Condition (const char *name)
 Constructor.
 
 ~Condition ()
 Destructor.
 
void enterTest ()
 Enter the condition test.
 
void wait ()
 Start waiting, if it appears that the test was false, call this after an enterTest.
 
void leaveTest ()
 Leave the condition test, after enterTest or wait.
 
void signal ()
 Signal the condition to any waiters.
 

Detailed Description

Wait and resume object.

Constructor & Destructor Documentation

◆ Condition()

dueca::Condition::Condition ( const char * name)

Constructor.

Parameters
nameIdentifying name.

Member Function Documentation

◆ enterTest()

void dueca::Condition::enterTest ( )

Enter the condition test.

Call this before checking to see whether waiting is needed, or call it when changing the conditions, and signalling a resume.

◆ wait()

void dueca::Condition::wait ( )

Start waiting, if it appears that the test was false, call this after an enterTest.



The documentation for this class was generated from the following file: