41 #ifndef _readwritespinlock_h
42 #define _readwritespinlock_h
90 bool TryLockForRead();
108 bool TryLockForWrite();
158 { mMutex->LockForRead(); }
162 { mMutex->UnlockRead(); }
196 { mMutex->LockForWrite(); }
200 { mMutex->UnlockWrite(); }
int32_t Int32
An 32-bit integer.
void unlock()
Simply calls UnlockWrite() for compatibility with lock_guard.
~ReadOnlyLockGuard()
The destructor unlocks the mutex.
ReadOnlyLockGuard(mutex_type &aMutex)
The constructor locks the mutex.
Declares a Mutex, Mutex tools, and at least one MutexLike object.
All the definitions for datatypes as well as some basic conversion functions are defined here...
ReadWriteLockGuard(mutex_type &aMutex)
The constructor locks the mutex.
void lock()
Simply calls LockForWrite() for compatibility with lock_guard.
Declares a tool for automatically unlocking a mutex in an exception safe way.
T mutex_type
This allows other code to use the type of this mutex in a more safe way.
A mutex like construct that never makes a system call and uses CPU instructions instead.
The bulk of the engine components go in this namspace.
T mutex_type
This allows other code to use the type of this mutex in a more safe way.
A mutex like construct that supports multiple readsingle writer semantics and never makes a system ca...
~ReadWriteLockGuard()
The destructor unlocks the mutex.