net_instaweb::ThreadSystem::ScopedReader Class Reference

#include "thread_system.h"

List of all members.

Public Member Functions

 ScopedReader (RWLock *lock)
void Release ()

Detailed Description

Scoped reader-lock for using RWLock*. Facilitates grabbing a reader-lock on entry to a scope, and releasing it on exit. Similar to ScopedMutex found in AbstractMutex, except that multiple ScopedReaders can be simultaneously instantiated on the same RWLock*.


Member Function Documentation

void net_instaweb::ThreadSystem::ScopedReader::Release (  )  [inline]

We allow Release called explicitly, before the ScopedReader goes out of scope and is destructed, calling Release again.


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:21 2012 for Page Speed Optimization Libraries by  doxygen 1.6.3