VICI  0.11.815
Visual Chart Interpreter
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | List of all members
VICI::cfi::SemaphoreLock Class Reference

Mutual exclusion lock. More...

#include <vici/ipc.h>

Public Member Functions

 SemaphoreLock (Semaphore &s)
 Constructor which acquires a lock on the supplied semaphore. More...
 
 ~SemaphoreLock ()
 Destructor which releases the lock.
 

Detailed Description

Mutual exclusion lock.

Wraps the Semaphore so that it will be automatically released even if an exception is thrown.

Constructor & Destructor Documentation

SemaphoreLock::SemaphoreLock ( Semaphore s)
explicit

Constructor which acquires a lock on the supplied semaphore.

Parameters
sThe semaphore being managed

The documentation for this class was generated from the following files: