20#ifndef _OPENTHREADS_MUTEX_
21#define _OPENTHREADS_MUTEX_
88 Mutex &operator=(
const Mutex &) {
return *(
this);};
#define OPENTHREAD_EXPORT_DIRECTIVE
Definition Exports:20
This class provides an object-oriented thread mutex interface.
Definition Mutex:31
friend class Condition
Definition Mutex:33
virtual ~Mutex()
Destructor.
MutexType
Definition Mutex:38
@ MUTEX_NORMAL
Definition Mutex:39
@ MUTEX_RECURSIVE
Definition Mutex:40
virtual int unlock()
Unlock the mutex.
MutexType getMutexType() const
Definition Mutex:54
Mutex(MutexType type=MUTEX_NORMAL)
Constructor.
virtual int lock()
Lock the mutex.
virtual int trylock()
Test if mutex can be locked.