#include <mutexHolder.h>
Public Member Functions | |
MutexHolder (const Mutex &mutex) | |
MutexHolder (Mutex *&mutex) | |
If the MutexHolder constructor is given a pointer to a Mutex object (instead of an actual object), it will first check to see if the pointer is NULL, and allocate a new Mutex if it is. | |
~MutexHolder () | |
Private Member Functions | |
MutexHolder (const MutexHolder ©) | |
Do not attempt to copy MutexHolders. | |
void | operator= (const MutexHolder ©) |
Do not attempt to copy MutexHolders. |
It is a C++ convenience wrapper to call release() automatically when a block exits (for instance, on return).
Definition at line 43 of file mutexHolder.h.
|
Definition at line 31 of file mutexHolder.I. |
|
If the MutexHolder constructor is given a pointer to a Mutex object (instead of an actual object), it will first check to see if the pointer is NULL, and allocate a new Mutex if it is. This is intended as a convenience for functions that may need to reference a Mutex at static init time, when it is impossible to guarantee ordering of initializers. Definition at line 59 of file mutexHolder.I. References INLINE. |
|
Definition at line 77 of file mutexHolder.I. |
|
Do not attempt to copy MutexHolders.
Definition at line 92 of file mutexHolder.I. |
|
Do not attempt to copy MutexHolders.
Definition at line 105 of file mutexHolder.I. |