Page Speed Optimization Libraries
1.13.35.1
|
#include "thread_system.h"
Public Member Functions | |
ScopedReader (RWLock *lock) SHARED_LOCK_FUNCTION(lock) | |
void | Release () UNLOCK_FUNCTION() |
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*.
|
inline |
We allow Release called explicitly, before the ScopedReader goes out of scope and is destructed, calling Release again.