AceSmartSoft API Documentation
|
#include <smartAdministrativeMonitor.hh>
Public Member Functions | |
SmartMonitor () | |
default constructor More... | |
virtual | ~SmartMonitor () |
default destructor More... | |
void | blocking (const bool) |
block/unblock More... | |
void | enableTimedMode (const ACE_Time_Value &timeout) |
enable timed mode More... | |
void | disableTimedMode () |
disable timed mode More... | |
int | acquire () |
aquire internal recursive mutex More... | |
int | release () |
release internal recursive mutex More... | |
virtual void | broadcast () |
signal to all threads to unblock from wait call More... | |
virtual void | reset () |
reset internal state to "not signalled" More... | |
virtual Smart::StatusCode | wait () |
blocking wait on condition variable to unblock More... | |
Protected Member Functions | |
void | clear_nested_level () |
void | restore_nested_level () |
Protected Attributes | |
bool | signalled |
bool | statusBlocking |
bool | statusTimed |
ACE_Time_Value | timeout_time |
SmartConditionRecursiveMutex | cond |
This class is used to implement synchronized Request-Response message communication. The implementation is similar to SmartCVwithMemory class, with the difference of using SmartRecursiveMutex and SmartConditionRecursiveMutex. (for more Details see PhD Thesis of Prof. Dr. Christian Schlegel, chapter 5.6.6.5)
SmartACE::SmartMonitor::SmartMonitor | ( | ) |
default constructor
|
virtual |
default destructor
int SmartACE::SmartMonitor::acquire | ( | ) |
aquire internal recursive mutex
void SmartACE::SmartMonitor::blocking | ( | const bool | ) |
block/unblock
|
virtual |
signal to all threads to unblock from wait call
|
protected |
void SmartACE::SmartMonitor::disableTimedMode | ( | ) |
disable timed mode
void SmartACE::SmartMonitor::enableTimedMode | ( | const ACE_Time_Value & | timeout | ) |
enable timed mode
int SmartACE::SmartMonitor::release | ( | ) |
release internal recursive mutex
|
virtual |
reset internal state to "not signalled"
|
protected |
|
virtual |
blocking wait on condition variable to unblock
Reimplemented in SmartACE::SmartAdministrativeMonitor.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |