OpenDaVINCI  4.16.0
odcore::wrapper::Condition Class Referenceabstract

#include <Condition.h>

Inheritance diagram for odcore::wrapper::Condition:
Inheritance graph

Public Member Functions

virtual ~Condition ()
 
virtual void waitOnSignal ()=0
 
virtual bool waitOnSignalWithTimeout (const unsigned long ms)=0
 
virtual void wakeOne ()=0
 
virtual void wakeAll ()=0
 
virtual void lock ()=0
 
virtual bool tryLock ()=0
 
virtual void unlock ()=0
 

Detailed Description

This interface encapsulates all methods necessary to realize a condition.

ConditionFactory

Constructor & Destructor Documentation

odcore::wrapper::Condition::~Condition ( )
virtual

Member Function Documentation

virtual void odcore::wrapper::Condition::lock ( )
pure virtual

This method locks the condition's mutex.

Implemented in odcore::wrapper::WIN32Impl::WIN32Condition, and odcore::wrapper::POSIX::POSIXCondition.

virtual bool odcore::wrapper::Condition::tryLock ( )
pure virtual

This method tries to lock the condition's mutex.

Returns
true, if the mutex could be locked.

Implemented in odcore::wrapper::WIN32Impl::WIN32Condition, and odcore::wrapper::POSIX::POSIXCondition.

virtual void odcore::wrapper::Condition::unlock ( )
pure virtual

This method unlocks the condition's mutex.

Implemented in odcore::wrapper::WIN32Impl::WIN32Condition, and odcore::wrapper::POSIX::POSIXCondition.

virtual void odcore::wrapper::Condition::waitOnSignal ( )
pure virtual

This method suspends the execution of the current thread.

Implemented in odcore::wrapper::WIN32Impl::WIN32Condition, and odcore::wrapper::POSIX::POSIXCondition.

virtual bool odcore::wrapper::Condition::waitOnSignalWithTimeout ( const unsigned long  ms)
pure virtual

This method suspends the execution of the current thread with a timeout.

Implemented in odcore::wrapper::WIN32Impl::WIN32Condition, and odcore::wrapper::POSIX::POSIXCondition.

virtual void odcore::wrapper::Condition::wakeAll ( )
pure virtual

This method awakes all threads sleeping on this condition.

Implemented in odcore::wrapper::WIN32Impl::WIN32Condition, and odcore::wrapper::POSIX::POSIXCondition.

virtual void odcore::wrapper::Condition::wakeOne ( )
pure virtual

This method awakes only one sleeping thread.

Implemented in odcore::wrapper::WIN32Impl::WIN32Condition, and odcore::wrapper::POSIX::POSIXCondition.