Page Speed Optimization Libraries
1.3.25.1
|
Abstract interface for implementing a mutex. More...
#include "abstract_mutex.h"
Public Member Functions | |
virtual bool | TryLock ()=0 |
Attempt to take mutex, true on success, false if held by another thread. | |
virtual void | Lock ()=0 |
Block until mutex is available, then take the mutex. | |
virtual void | Unlock ()=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 void net_instaweb::AbstractMutex::DCheckLocked | ( | ) | [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 void net_instaweb::AbstractMutex::DCheckUnlocked | ( | ) | [virtual] |
Optionally checks that lock is not held (for invariant checking purposes). Default implementation does no checking.
Reimplemented in net_instaweb::CheckingThreadSystem::Mutex.