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

Read-write lock. More...

#include <cc/ReadWriteLock>

Public Member Functions

 ReadWriteLock ()
 Create a new read-write lcok.
 
 ~ReadWriteLock ()
 Destroy the read-write lock.
 
void readAcquire ()
 Acquire the read-write lock for reading.
 
void writeAcquire ()
 Acquire the read-write lock exclusively for writing.
 
void release ()
 Release the read-write lock.
 

Detailed Description

Read-write lock.

See also
ReadGuard, WriteGuard

Constructor & Destructor Documentation

◆ ReadWriteLock()

Create a new read-write lcok.

Exceptions
SystemError

◆ ~ReadWriteLock()

Destroy the read-write lock.

Member Function Documentation

◆ readAcquire()

void readAcquire ( )

Acquire the read-write lock for reading.

See also
ReadGuard

◆ writeAcquire()

void writeAcquire ( )

Acquire the read-write lock exclusively for writing.

◆ release()

void release ( )

Release the read-write lock.