Definition at line 19 of file Mutex.h.
◆ Mutex()
Definition at line 12 of file Mutex.cc.
13{
14 pthread_mutexattr_init(&m_attr);
15 pthread_mutex_init(&m_mu, &m_attr);
16}
◆ ~Mutex()
◆ lock()
Definition at line 22 of file Mutex.cc.
23{
24 if (pthread_mutex_lock(&m_mu) != 0) {
25 return false;
26 }
27 return true;
28}
◆ unlock()
Definition at line 30 of file Mutex.cc.
31{
32 if (pthread_mutex_unlock(&m_mu) != 0) {
33 return false;
34 }
35 return true;
36}
◆ Cond
◆ m_attr
pthread_mutexattr_t m_attr |
|
private |
◆ m_mu
The documentation for this class was generated from the following files: