Page Speed Optimization Libraries
1.3.25.1
|
#include "checking_thread_system.h"
Classes | |
class | Mutex |
class | RWLock |
Public Member Functions | |
CheckingThreadSystem (ThreadSystem *thread_system) | |
virtual Mutex * | NewMutex () |
virtual RWLock * | NewRWLock () |
virtual Timer * | NewTimer () |
Creates and returns a real-time timer. Caller is responsible for deleting. | |
Friends | |
class | Mutex |
A thread system whose mutex and condvar factories yield implementations that permit checking of lock invariants using DCheckLocked(). This can be wrapped around an unchecked implementation. This implementation checks invariants using CHECK (so does checking unconditionally). To check conditionally, do the wrapping depending upon the setting of NDEBUG. This is done by the ThreadSystem::CreateThreadSystem() factory by default, which is why the invariant checking method is called DCheckLock (Debug check lock) and not CheckLock.
virtual Mutex* net_instaweb::CheckingThreadSystem::NewMutex | ( | ) | [virtual] |
Makes a new mutex for this system.
See also CondvarCapableMutex::NewCondvar.
Implements net_instaweb::ThreadSystem.
virtual RWLock* net_instaweb::CheckingThreadSystem::NewRWLock | ( | ) | [virtual] |
This lock will provide following guarantee -
Implements net_instaweb::ThreadSystem.