#include <Synchronized.h>
Static Public Attributes | |
static constexpr bool | kIsRecursiveReadMutex |
static constexpr bool | kIsRecursiveLockMutex = same_as<MUTEX, recursive_mutex> or same_as<MUTEX, recursive_timed_mutex> |
static constexpr bool | kDbgTraceLockUnlockIfNameSet = qStroika_Foundation_Debug_DefaultTracingOn |
MUTEX: We chose to make the default MUTEX recursive_mutex - since most patterns of use will be supported by this safely.
To use timed-locks, use timed_recursive_mutex.
If recursion is not necessary, and for highest performance, SpinLock will often work best.
or slightly faster, but possibly slower or less safe (depending on usage) Synchronized<String,Synchronized_Traits<SpinLock>> n;
Definition at line 89 of file Synchronized.h.
|
staticconstexpr |
Used internally for assertions that the synchronized object is used safely. If you mean to use differently, specialize
Definition at line 95 of file Synchronized.h.
|
staticconstexpr |
Used internally for assertions that the synchronized object is used safely. If you mean to use differently, specialize
Definition at line 101 of file Synchronized.h.
|
staticconstexpr |
If enabled, fTraceLocksName field available, and if its set, DbgTrace calls on lock/unlock.
Definition at line 106 of file Synchronized.h.