#include <mutex.h>
Inheritance diagram for MutexObject:
Public Member Functions | |
MutexObject (const std::string &rstrMutexName="_noname") | |
virtual | ~MutexObject () |
void | Lock () |
void | Unlock () |
void | WaitForEvent () |
void | BroadcastEvent () |
void | SetName (const std::string &rstrName) |
Private Attributes | |
pthread_mutex_t | m_kMutex |
pthread_cond_t | m_kCond |
std::string | m_strMutexName |
|
Create a new named mutex object
|
|
Delete mutex object |
|
Lock mutex (will block until lock obtained) |
|
Unlock mutex |
|
Block until event occurs |
|
Broadcast event, wake up all waiting for event |
|
Set mutex name
|
|
Mutex object |
|
Condition object |
|
Name |