#include <mutex.h>
Public Member Functions |
|
TReadLocker (ReadWriteLockType *lock) |
As default, BALL supports QReadLocker, but it can be easily extended to support the same functionality with classes from boost or Intel Thread Building Blocks.
A BALL-mutex read-locker needs to provide a constructor which is called with a pointer to a corresponding TReadWriteLock. Upon construction, the mutex is automatically locked for read, and is automatically unlocked when the mutex runs out of scope.