Page Speed Optimization Libraries
1.3.25.1
|
#include "thread_system.h"
Public Member Functions | |
ScopedReader (RWLock *lock) | |
void | Release () |
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*.
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.