CoreComponents 3.0.0
A Modern C++ Toolkit
Loading...
Searching...
No Matches
ReadGuard Class Referencefinal

For-reading lock guard. More...

#include <cc/ReadGuard>

Public Member Functions

 ReadGuard (ReadWriteLock &lock)
 Post guard: acquire read-write lock for reading.
 
 ~ReadGuard ()
 Disband guard: release read-write lock.
 

Detailed Description

For-reading lock guard.

Constructor & Destructor Documentation

◆ ReadGuard()

ReadGuard ( ReadWriteLock & lock)
explicit

Post guard: acquire read-write lock for reading.

◆ ~ReadGuard()

~ReadGuard ( )

Disband guard: release read-write lock.