net_instaweb::CheckingThreadSystem::Mutex Class Reference

#include "checking_thread_system.h"

Inheritance diagram for net_instaweb::CheckingThreadSystem::Mutex:
net_instaweb::ThreadSystem::CondvarCapableMutex net_instaweb::AbstractMutex

List of all members.

Public Member Functions

 Mutex (ThreadSystem::CondvarCapableMutex *mutex)
virtual void Lock ()
virtual void Unlock ()
virtual void DCheckLocked ()
 This implementation of DCheckLocked CHECK-fails if lock is not held.
virtual ThreadSystem::CondvarNewCondvar ()
 The condvars provided perform lock checking for ....Wait operations.

Friends

class CheckingCondvar

Detailed Description

We also expose CheckingThreadSystem::Mutex, which wraps a CondvarCapableMutex to provide checked condvars and lock checking (these two must be done together, so we must wrap the mutex from which the condvar is created and use the wrapped mutex to create the condvar). This class can be used to wrap unchecked mutexes provided by other CheckingThreadSystems.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Tue May 29 16:34:08 2012 for Page Speed Optimization Libraries by  doxygen 1.6.3