#include <Pt/System/Mutex.h>
Lock object for spin mutexes.
Inherits NonCopyable.
Public Member Functions | |
SpinLock (SpinMutex &m, bool doLock=true, bool isLocked=false) | |
Construct to guard a SpinMutex. More... | |
~SpinLock () | |
Unlocks the mutex unless unlock() was called. | |
void | lock () |
Locks the mutex. | |
void | unlock () |
Unlocks the mutex. | |