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

For-writing lock guard. More...

#include <cc/WriteGuard>

Public Member Functions

 WriteGuard (ReadWriteLock &lock)
 Post guard: acquire read-write lock exlusively for writing.
 
 ~WriteGuard ()
 Disband guard: release read-write lock.
 

Detailed Description

For-writing lock guard.

Constructor & Destructor Documentation

◆ WriteGuard()

WriteGuard ( ReadWriteLock & lock)
explicit

Post guard: acquire read-write lock exlusively for writing.

◆ ~WriteGuard()

~WriteGuard ( )

Disband guard: release read-write lock.