|
Beam-lib
2.16.3
This is the Beam C++ class library.
|
#include <BMutex.h>
Public Types | |
| enum | Type { Normal, Recursive } |
Public Member Functions | |
| BMutex (Type type=Normal) | |
| BMutex (const BMutex &mutex) | |
| ~BMutex () | |
| int | lock () |
| Set lock, wait as necessary. More... | |
| int | timedLock (int timeoutUs) |
| Set lock, wait as necessary but timeout after given time. More... | |
| int | unlock () |
| Unlock the lock. More... | |
| int | tryLock () |
| Test the lock. More... | |
| BMutex & | operator= (const BMutex &mutex) |
Mutex class Note these are recursive Mutexes and so you need to make sure the number of unlocks equals the number of locks.
| enum BMutex::Type |
| 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.
1.8.15