OpenDaVINCI  4.15.3
odcore::wrapper::Mutex Class Referenceabstract

#include <Mutex.h>

Inheritance diagram for odcore::wrapper::Mutex:
Inheritance graph

Public Member Functions

virtual ~Mutex ()
 
virtual void lock ()=0
 
virtual bool tryLock ()=0
 
virtual void unlock ()=0
 

Detailed Description

This interface encapsulates all methods necessary to realize a mutex.

MutexFactory

Constructor & Destructor Documentation

odcore::wrapper::Mutex::~Mutex ( )
virtual

Member Function Documentation

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

This method locks a wrapped mutex.

Implemented in odcore::wrapper::WIN32Impl::WIN32Mutex, and odcore::wrapper::POSIX::POSIXMutex.

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

This method tries to lock a wrapped mutex.

Returns
true, if the mutex could be locked.

Implemented in odcore::wrapper::WIN32Impl::WIN32Mutex, and odcore::wrapper::POSIX::POSIXMutex.

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

This method unlocks a wrapped mutex.

Implemented in odcore::wrapper::WIN32Impl::WIN32Mutex, and odcore::wrapper::POSIX::POSIXMutex.