Page Speed Optimization Libraries
1.13.35.1
|
Abstract interface for implementing a mutex. More...
#include "abstract_mutex.h"
Public Member Functions | |
virtual bool | TryLock () EXCLUSIVE_TRYLOCK_FUNCTION(true)=0 |
Attempt to take mutex, true on success, false if held by another thread. | |
virtual void | Lock () EXCLUSIVE_LOCK_FUNCTION()=0 |
Block until mutex is available, then take the mutex. | |
virtual void | Unlock () UNLOCK_FUNCTION()=0 |
Release the mutex, permitting a blocked lock operation (if any) to proceed. | |
virtual void | DCheckLocked () |
virtual void | DCheckUnlocked () |
Abstract interface for implementing a mutex.
|
virtual |
Optionally checks that lock is held (for invariant checking purposes). Default implementation does no checking.
Reimplemented in net_instaweb::CheckingThreadSystem::RWLock, and net_instaweb::CheckingThreadSystem::Mutex.
|
virtual |
Optionally checks that lock is not held (for invariant checking purposes). Default implementation does no checking.
Reimplemented in net_instaweb::CheckingThreadSystem::Mutex.