#include <hpp/corbaserver/read-write-lock.hh>
Synchronization class that ensures the following.
- A Write block Weads and Writes.
- Reads are only blocked by Writes, not by other Reads.
- Write is favored over Reads.
This code was taken from https://stackoverflow.com/a/28121513
◆ ReadWriteLock()
hpp::corbaServer::ReadWriteLock::ReadWriteLock |
( |
| ) |
|
|
inline |
◆ readLock()
void hpp::corbaServer::ReadWriteLock::readLock |
( |
| ) |
|
|
inline |
◆ readUnlock()
void hpp::corbaServer::ReadWriteLock::readUnlock |
( |
| ) |
|
|
inline |
◆ writeLock()
void hpp::corbaServer::ReadWriteLock::writeLock |
( |
| ) |
|
|
inline |
◆ writeUnlock()
void hpp::corbaServer::ReadWriteLock::writeUnlock |
( |
| ) |
|
|
inline |
The documentation for this class was generated from the following file: