Account
LibTmsApi 2.3.0 |
BRWLock Class Reference
thread read-write locks More...
#include <BRWLock.h>
Public Member Functions | |
BRWLock () | |
BRWLock (const BRWLock &rwlock) | |
~BRWLock () | |
int | rdLock () |
Set lock, wait if necessary. | |
int | tryRdLock () |
Test the lock. | |
int | wrLock () |
Set lock, wait if necessary. | |
int | tryWrLock () |
Test the lock. | |
int | unlock () |
Unlock the lock. | |
BRWLock & | operator= (const BRWLock &rwlock) |
Private Attributes | |
pthread_rwlock_t | olock |
Detailed Description
thread read-write locks
Constructor & Destructor Documentation
◆ BRWLock() [1/2]
BRWLock::BRWLock | ( | ) |
◆ BRWLock() [2/2]
BRWLock::BRWLock | ( | const BRWLock & | rwlock | ) |
◆ ~BRWLock()
BRWLock::~BRWLock | ( | ) |
Member Function Documentation
◆ operator=()
◆ rdLock()
int BRWLock::rdLock | ( | ) |
Set lock, wait if necessary.
◆ tryRdLock()
int BRWLock::tryRdLock | ( | ) |
Test the lock.
◆ tryWrLock()
int BRWLock::tryWrLock | ( | ) |
Test the lock.
◆ unlock()
int BRWLock::unlock | ( | ) |
Unlock the lock.
◆ wrLock()
int BRWLock::wrLock | ( | ) |
Set lock, wait if necessary.
Member Data Documentation
◆ olock
| private |
The documentation for this class was generated from the following files:
- /src/cern/tms/tms/beam/libBeam/BRWLock.h
- /src/cern/tms/tms/beam/libBeam/BRWLock.cpp
Generated by 1.9.7