Use this to protect data structures that get hammered by reads and where updates are very rare. It is used in the storage manager by the histograms (histo.cpp), and in place of some mutexen, where strict exclusion isn't required.
This lock is used in the storage manager by the checkpoint thread (the only acquire-writer) and other threads to be sure they don't do certain nasty things when a checkpoint is going on.
The idiom for using these locks is that the qnode is on a threads's stack, so the qnode implicitly identifies the owning thread.
See also: REFSYNC
Definition at line 595 of file sthread.h.
Public Member Functions
|The normal way to acquire a read lock. |
|The normal way to release a read lock. |
|The normal way to acquire a write lock. |
|The normal way to release a write lock. |