|
latest version v1.9 - last update 10 Apr 2010 |
|
lti read-write synchronisation class More...
#include <ltiReadWriteLock.h>


Public Member Functions | |
| readWriteLock () | |
| virtual | ~readWriteLock () |
| void | lockRead () const |
| bool | tryLockRead () const |
| void | lockWrite () const |
| bool | tryLockWrite () const |
| void | unlock () const |
| virtual const char * | getTypeName () const |
lti read-write synchronisation class
| lti::readWriteLock::readWriteLock | ( | ) |
default constructor
| virtual lti::readWriteLock::~readWriteLock | ( | ) | [virtual] |
destructor
| virtual const char* lti::readWriteLock::getTypeName | ( | ) | const [virtual] |
returns the name of this type
Reimplemented from lti::object.
| void lti::readWriteLock::lockRead | ( | ) | const |
wait until read-write lock becomes available and lock it for read access
| void lti::readWriteLock::lockWrite | ( | ) | const |
wait until read-write lock becomes available and lock it for write access
| bool lti::readWriteLock::tryLockRead | ( | ) | const |
Try to lock, but do not block.
Return true if locking was successful.
| bool lti::readWriteLock::tryLockWrite | ( | ) | const |
Try to lock, but do not block.
Return true if locking was successful.
| void lti::readWriteLock::unlock | ( | ) | const |
unlock read-write lock from read or write access