41 #ifndef _readwritespinlock_cpp
42 #define _readwritespinlock_cpp
104 Locked=std::numeric_limits<Int32>::min();
120 assert(!(0==Locked));
121 assert(!(std::numeric_limits<Int32>::min()!=Locked));
Declares a Mutex, Mutex tools, and at least one MutexLike object.
~ReadWriteSpinLock()
Destructor.
void UnlockRead()
Unlock this .
ReadWriteSpinLock()
Constructor, creates an unlocked mutex.
void LockForRead()
Lock the ReadWriteSpinLock for Reading.
bool TryLockForRead()
Try to lock this for reading.
void UnlockWrite()
Unlock this for writing.
void Lock()
Lock the SpinLock.
bool TryLockForWrite()
Try to lock this for writing.
bool TryLock()
Try to lock the spinlock.
Simple thread safe ways to check and change a specified variable atomically.
The bulk of the engine components go in this namspace.
void Unlock()
Unlock the spinlock.
void LockForWrite()
Lock the ReadWriteSpinLock for Writing.