Page Speed Optimization Libraries
1.13.35.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 () |
virtual ThreadId * | GetThreadId () const |
Friends | |
class | Mutex |
Additional Inherited Members | |
Public Types inherited from net_instaweb::ThreadSystem | |
enum | ThreadFlags { kDetached = 0, kJoinable = 1 } |
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 Platform::CreateThreadSystem() factory by default, which is why the invariant checking method is called DCheckLock (Debug check lock) and not CheckLock.
|
inlinevirtual |
Returns an object holding the current thread ID. The resultant object must be freed by the caller.
Implements net_instaweb::ThreadSystem.
|
virtual |
Makes a new mutex for this system.
See also CondvarCapableMutex::NewCondvar.
Implements net_instaweb::ThreadSystem.
|
virtual |
This lock will provide following guarantee -
Implements net_instaweb::ThreadSystem.
|
virtual |
Creates and returns a real-time timer. Caller is responsible for deleting.
Implements net_instaweb::ThreadSystem.