AceSmartSoft API Documentation
Public Member Functions | List of all members
SmartACE::SmartCntCondClass Class Reference

#include <smartCondVar.hh>

Public Member Functions

 SmartCntCondClass ()
 constructor More...
 
 ~SmartCntCondClass ()
 destructor More...
 
 SmartCntCondClass (const SmartCntCondClass &)
 copy constructor More...
 
SmartCntCondClassoperator= (const SmartCntCondClass &)
 copy assignment More...
 
void signal (void)
 
void wait (void)
 
int test (void)
 

Detailed Description

Condition variable with memory / more or less a semaphore which does not count.

The condition variable is used to avoid active waiting. It uses an internal state to indicate whether the condition variable has been signaled already (active state) and then returns immediately resetting the internal state (passive state). Can not be used to broadcast a signal since multiple signals are summarized in the active state which is consumed by the first call to the wait-method.

Within the communication patterns there is always one producer and one consumer of a signal. Used to handle methods like queryReceive where one has to know whether the expected answer has already been received before invoking the queryReceive method (if not yet received block until reception of answer).

Constructor & Destructor Documentation

◆ SmartCntCondClass() [1/2]

SmartACE::SmartCntCondClass::SmartCntCondClass ( )

constructor

◆ ~SmartCntCondClass()

SmartACE::SmartCntCondClass::~SmartCntCondClass ( )

destructor

◆ SmartCntCondClass() [2/2]

SmartACE::SmartCntCondClass::SmartCntCondClass ( const SmartCntCondClass )

copy constructor

Member Function Documentation

◆ operator=()

SmartCntCondClass& SmartACE::SmartCntCondClass::operator= ( const SmartCntCondClass )

copy assignment

◆ signal()

void SmartACE::SmartCntCondClass::signal ( void  )

◆ test()

int SmartACE::SmartCntCondClass::test ( void  )

◆ wait()

void SmartACE::SmartCntCondClass::wait ( void  )

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