#include <BMutex.h>
Inheritance diagram for BMutex:

Public Types | |
| Normal | |
| Recursive | |
| enum | Type { Normal, Recursive } |
Public Member Functions | |
| BMutex (Type type=Normal) | |
| BMutex (const BMutex &mutex) | |
| ~BMutex () | |
| int | lock () |
| Set lock, wait as necessary. | |
| int | timedLock (int timeoutUs) |
| Set lock, wait as necessary but timeout after given time. | |
| int | unlock () |
| Unlock the lock. | |
| int | tryLock () |
| Test the lock. | |
| BMutex & | operator= (const BMutex &mutex) |
Private Attributes | |
| pthread_mutex_t | omutex |
| enum BMutex::Type |
| BMutex::BMutex | ( | Type | type = Normal |
) |
| BMutex::BMutex | ( | const BMutex & | mutex | ) |
| BMutex::~BMutex | ( | ) |
| int BMutex::lock | ( | ) |
Set lock, wait as necessary.
| int BMutex::timedLock | ( | int | timeoutUs | ) |
Set lock, wait as necessary but timeout after given time.
| int BMutex::tryLock | ( | ) |
Test the lock.
| int BMutex::unlock | ( | ) |
Unlock the lock.
pthread_mutex_t BMutex::omutex [private] |
1.4.7