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
|virtual bool||isWriteLockOnCurrentThread () const|
|virtual void||lockRead (LOCKVAL_SRC_POS_DECL)|
|virtual void||lockWrite (LOCKVAL_SRC_POS_DECL)|
|virtual void||unlockRead ()|
|virtual void||unlockWrite ()|
|WriteLockHandle (VBoxLockingClass lockClass)|
|virtual uint32_t||writeLockLevel () const|