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