Page Speed Optimization Libraries  1.13.35.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
net_instaweb::ThreadSystem::ScopedReader Class Reference

#include "thread_system.h"

Public Member Functions

 ScopedReader (RWLock *lock) SHARED_LOCK_FUNCTION(lock)
 
void Release () UNLOCK_FUNCTION()
 

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: