hpp-corbaserver  6.0.0
Corba server for Humanoid Path Planner applications
hpp::corbaServer::ReadWriteLock Class Reference

#include <hpp/corbaserver/read-write-lock.hh>

Public Member Functions

 ReadWriteLock ()
 
void readLock ()
 
void readUnlock ()
 
void writeLock ()
 
void writeUnlock ()
 

Detailed Description

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

Constructor & Destructor Documentation

◆ ReadWriteLock()

hpp::corbaServer::ReadWriteLock::ReadWriteLock ( )
inline

Member Function Documentation

◆ 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: