|
nidas v1.2.3
|
A class which wraps a numeric value and guards operations on it with a Mutex. More...
#include <MutexCount.h>
Public Member Functions | |
| MutexCount (T value=0) | |
| T | value () |
| operator T () | |
| MutexCount & | operator++ () |
| Pre increment operator. | |
| MutexCount & | operator-- () |
| Pre decrement operator. | |
Private Attributes | |
| Mutex | _lock |
| T | _value |
A class which wraps a numeric value and guards operations on it with a Mutex.
|
inlineexplicit |
|
inline |
References nidas::util::MutexCount< T >::value().
|
inline |
Pre increment operator.
References nidas::util::MutexCount< T >::_lock, and nidas::util::MutexCount< T >::_value.
|
inline |
Pre decrement operator.
References nidas::util::MutexCount< T >::_lock, and nidas::util::MutexCount< T >::_value.
|
inline |
References nidas::util::MutexCount< T >::_lock, and nidas::util::MutexCount< T >::_value.
Referenced by nidas::util::MutexCount< T >::operator T().
|
private |
|
private |