Page Speed Optimization Libraries  1.3.25.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
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

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