This is an auxiliary base class for classes that need write-only (exclusive) locking and do not need read (shared) locking. This implementation uses a cheap and fast critical section for both lockWrite() and lockRead() methods which makes a lockRead() call fully equivalent to the lockWrite() call and therefore makes it pointless to use instahces of this class with AutoReadLock instances -- shared locking will not be possible anyway and any call to lock() will block if there are lock owners on other threads.
Use with care only when absolutely sure that shared locks are not necessary.
Public Member Functions
|bool||isWriteLockOnCurrentThread () const|
|LockOps *||rlock ()|
|LockOps *||wlock ()|
Protected Member Functions
Private Member Functions
|uint32_t||writeLockLevel () const|