BALL
1.4.79
|
#include <BALL/SYSTEM/mutex.h>
Public Member Functions | |
TWriteLocker (ReadWriteLockType *lock) | |
This class provides a very thin wrapper around different mutex write-locker types. As default, BALL supports QWriteLocker, but it can be easily extended to support the same functionality with classes from boost or Intel Thread Building Blocks.
A BALL-mutex write-locker needs to provide a constructor which is called with a pointer to a corresponding TReadWriteLock. Upon construction, the mutex is automatically locked for write, and is automatically unlocked when the mutex runs out of scope.
|
inline |