|
libcrn
3.9.5
A document image processing library
|
A lock that allows multiple readers or one exclusive writer. More...
#include <CRNRWLock.h>
Classes | |
| struct | internal_data |
| class | ReadLock |
| RA2I read auto-lock. More... | |
| class | WriteLock |
| RA2I write auto-lock. More... | |
Public Member Functions | |
| RWLock () | |
| Constructor. More... | |
| ~RWLock () | |
| Destructor. More... | |
| RWLock (const RWLock &)=delete | |
| RWLock (RWLock &&)=delete | |
| RWLock & | operator= (const RWLock &)=delete |
| RWLock & | operator= (RWLock &&)=delete |
| void | WaitReadLock () |
| Requests authorization to read. More... | |
| void | ReadUnlock () |
| Releases read token. More... | |
| void | WaitWriteLock () |
| Requests authorization to write. More... | |
| void | WriteUnlock () |
| Releases write token. More... | |
A lock that allows multiple readers or one exclusive writer.
A lock that allows multiple readers or one exclusive writer
Definition at line 37 of file CRNRWLock.h.
| RWLock::RWLock | ( | ) |
| RWLock::~RWLock | ( | ) |
|
delete |
|
delete |
| void RWLock::ReadUnlock | ( | ) |
| void RWLock::WaitReadLock | ( | ) |
Requests authorization to read.
Requests authorization to read
Definition at line 74 of file CRNRWLock.cpp.
| void RWLock::WaitWriteLock | ( | ) |
Requests authorization to write.
Requests authorization to write
Definition at line 149 of file CRNRWLock.cpp.
| void RWLock::WriteUnlock | ( | ) |
1.8.6