#include <Mutex.h>
Definition at line 47 of file Mutex.h.
◆ Mutex() [1/2]
◆ ~Mutex()
mars::utils::Mutex::~Mutex |
( |
| ) |
|
◆ Mutex() [2/2]
mars::utils::Mutex::Mutex |
( |
const Mutex & |
| ) |
|
|
private |
◆ getHandle()
void * mars::utils::Mutex::getHandle |
( |
| ) |
|
|
private |
◆ getMutexType()
MutexType mars::utils::Mutex::getMutexType |
( |
| ) |
const |
|
inline |
◆ lock()
locks the Mutex
- Returns
- MUTEX_ERROR_NO_ERROR if the Mutex was successfully locked. Otherwise depending on the error one of MUTEX_ERROR_NO_VALID_MUTEX, MUTEX_ERROR_RECURSIVE_LIMIT, MUTEX_ERROR_DEADLOCK, or MUTEX_ERROR_UNKNOWN is returned.
Definition at line 61 of file Mutex.cpp.
◆ operator=()
Mutex& mars::utils::Mutex::operator= |
( |
const Mutex & |
| ) |
|
|
private |
◆ tryLock()
tries to lock the mutex.
- Returns
- MUTEX_ERROR_NO_ERROR if the Mutex was successfully locked. MUTEX_ERROR_BUSY if the mutex couldn't be locked because it is already locked. Otherwise depending on the error one of MUTEX_ERROR_NO_VALID_MUTEX, MUTEX_ERROR_RECURSIVE_LIMIT, or MUTEX_ERROR_UNKNOWN is returned.
This method tries to lock the Mutex but does not block to do so. If the mutex is not held by anyone it is locked and MUTEX_ERROR_NO_ERROR is returned. If the mutex is currently in locked state MUTEX_ERROR_BUSY is returned.
Definition at line 93 of file Mutex.cpp.
◆ unlock()
◆ WaitCondition
◆ mutexType
◆ myMutex
The documentation for this class was generated from the following files:
- /Developer/bob-learning-dev/simulation/mars/common/utils/src/Mutex.h
- /Developer/bob-learning-dev/simulation/mars/common/utils/src/Mutex.cpp