#include <Sync.h>
Public Member Functions | |
| Mutex () | |
| ~Mutex () | |
| bool | IsOk () const |
| int | Lock () |
| int | TryLock () |
| int | Unlock () |
Private Attributes | |
| pthread_mutex_t | m_mutex |
| bool | m_isOk |
Friends | |
| class | Condition |
| ~Mutex | ( | ) |
Definition at line 39 of file Sync.C.
References COMMPI_Initialized(), m_isOk, and m_mutex.

|
inline |
Definition at line 34 of file Sync.h.
References m_isOk.
Referenced by Condition::IsOk(), and Semaphore::Semaphore().

| int Lock | ( | ) |
Definition at line 50 of file Sync.C.
References m_mutex.
Referenced by Semaphore::Post(), Semaphore::TryWait(), and Semaphore::Wait().

| int Unlock | ( | ) |
Definition at line 95 of file Sync.C.
References m_mutex.
Referenced by Semaphore::Post(), Semaphore::TryWait(), and Semaphore::Wait().

|
private |
|
private |