Beam-lib
2.16.3
This is the Beam C++ class library.
|
thread read-write locks More...
#include <BRWLock.h>
Public Member Functions | |
BRWLock () | |
BRWLock (const BRWLock &rwlock) | |
~BRWLock () | |
int | rdLock () |
Set lock, wait if necessary. More... | |
int | tryRdLock () |
Test the lock. More... | |
int | wrLock () |
Set lock, wait if necessary. More... | |
int | tryWrLock () |
Test the lock. More... | |
int | unlock () |
Unlock the lock. More... | |
BRWLock & | operator= (const BRWLock &rwlock) |
thread read-write locks
BRWLock::BRWLock | ( | ) |
BRWLock::BRWLock | ( | const BRWLock & | rwlock | ) |
BRWLock::~BRWLock | ( | ) |
int BRWLock::rdLock | ( | ) |
Set lock, wait if necessary.
int BRWLock::tryRdLock | ( | ) |
Test the lock.
int BRWLock::tryWrLock | ( | ) |
Test the lock.
int BRWLock::unlock | ( | ) |
Unlock the lock.
int BRWLock::wrLock | ( | ) |
Set lock, wait if necessary.