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

#include <POSIXMutex.h>

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

Public Member Functions

virtual ~POSIXMutex ()
 
virtual void lock ()
 
virtual bool tryLock ()
 
virtual void unlock ()
 
pthread_mutex_t & getNativeMutex ()
 

Protected Member Functions

 POSIXMutex ()
 

Friends

class MutexFactoryWorker< SystemLibraryPosix >
 
class POSIXCondition
 

Detailed Description

This class implements a mutex for protecting parts using pthread.

Mutex

Constructor & Destructor Documentation

odcore::wrapper::POSIX::POSIXMutex::POSIXMutex ( )
protected
odcore::wrapper::POSIX::POSIXMutex::~POSIXMutex ( )
virtual

Member Function Documentation

pthread_mutex_t & odcore::wrapper::POSIX::POSIXMutex::getNativeMutex ( )
void odcore::wrapper::POSIX::POSIXMutex::lock ( )
virtual

This method locks a wrapped mutex.

Implements odcore::wrapper::Mutex.

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

This method tries to lock a wrapped mutex.

Returns
true, if the mutex could be locked.

Implements odcore::wrapper::Mutex.

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

This method unlocks a wrapped mutex.

Implements odcore::wrapper::Mutex.

Friends And Related Function Documentation

friend class MutexFactoryWorker< SystemLibraryPosix >
friend
friend class POSIXCondition
friend