Ark Server API (ASE) - Wiki
|
#include <Mutex.h>
Public Types | |
using | ScopedLock = Poco::ScopedLock<NullMutex> |
Public Member Functions | |
NullMutex () | |
Creates the NullMutex. | |
~NullMutex () | |
Destroys the NullMutex. | |
void | lock () |
Does nothing. | |
void | lock (long) |
Does nothing. | |
bool | tryLock () |
Does nothing and always returns true. | |
bool | tryLock (long) |
Does nothing and always returns true. | |
void | unlock () |
Does nothing. | |
A NullMutex is an empty mutex implementation which performs no locking at all. Useful in policy driven design where the type of mutex used can be now a template parameter allowing the user to switch between thread-safe and not thread-safe depending on his need Works with the ScopedLock class
|
inline |
|
inline |
|
inline |
|
inline |