Mutex.
More...
#include <JMutex.hh>
Mutex.
Definition at line 95 of file JMutex.hh.
JSYNCHRONIZATION::JMutex::JMutex |
( |
| ) |
|
|
inline |
JSYNCHRONIZATION::JMutex::~JMutex |
( |
| ) |
|
|
inline |
int JSYNCHRONIZATION::JMutex::lock |
( |
| ) |
|
|
inline |
Lock the mutex.
- Returns
- 0 on success, an error code otherwise. See man 3p pthread_mutex_lock for further info.
Definition at line 122 of file JMutex.hh.
124 return pthread_mutex_lock(&
m_mutex);
int JSYNCHRONIZATION::JMutex::try_lock |
( |
| ) |
|
|
inline |
Try lock the mutex.
- Returns
- 0 on success, an error code otherwise. See man 3p pthread_mutex_lock for further info.
Definition at line 132 of file JMutex.hh.
134 return pthread_mutex_trylock(&
m_mutex);
int JSYNCHRONIZATION::JMutex::unlock |
( |
| ) |
|
|
inline |
Unlock the mutex.
- Returns
- 0 on success, an error code otherwise. See man 3p pthread_mutex_lock for further info.
Definition at line 142 of file JMutex.hh.
144 return pthread_mutex_unlock(&
m_mutex);
pthread_mutex_t JSYNCHRONIZATION::JMutex::m_mutex |
|
private |
The documentation for this class was generated from the following file: