OpenDaVINCI  4.16.0
odcore::wrapper::POSIX::POSIXCondition Class Reference

#include <POSIXCondition.h>

Inheritance diagram for odcore::wrapper::POSIX::POSIXCondition:
Inheritance graph

Public Member Functions

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

Friends

class ConditionFactoryWorker< SystemLibraryPosix >
 

Detailed Description

This class implements a condition for protecting parts using pthread. It is derived from POSIXMutex for getting the native mutex handle in pthread_cond_wait(...) calls.

Condition.

Constructor & Destructor Documentation

odcore::wrapper::POSIX::POSIXCondition::~POSIXCondition ( )
virtual

Member Function Documentation

void odcore::wrapper::POSIX::POSIXCondition::lock ( )
virtual

This method locks the condition's mutex.

Implements odcore::wrapper::Condition.

bool odcore::wrapper::POSIX::POSIXCondition::tryLock ( )
virtual

This method tries to lock the condition's mutex.

Returns
true, if the mutex could be locked.

Implements odcore::wrapper::Condition.

void odcore::wrapper::POSIX::POSIXCondition::unlock ( )
virtual

This method unlocks the condition's mutex.

Implements odcore::wrapper::Condition.

void odcore::wrapper::POSIX::POSIXCondition::waitOnSignal ( )
virtual

This method suspends the execution of the current thread.

Implements odcore::wrapper::Condition.

bool odcore::wrapper::POSIX::POSIXCondition::waitOnSignalWithTimeout ( const unsigned long  ms)
virtual

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

Implements odcore::wrapper::Condition.

void odcore::wrapper::POSIX::POSIXCondition::wakeAll ( )
virtual

This method awakes all threads sleeping on this condition.

Implements odcore::wrapper::Condition.

void odcore::wrapper::POSIX::POSIXCondition::wakeOne ( )
virtual

This method awakes only one sleeping thread.

Implements odcore::wrapper::Condition.

Friends And Related Function Documentation