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

A semaphore for managing exclusive access to resources across multiple processes. More...

#include <vici/ipc.h>

Public Member Functions

 Semaphore (char id)
 Constructor. More...
 
 ~Semaphore ()
 Destructor.
 
void acquire ()
 wait until available
 
void release ()
 release exclusive lock
 

Detailed Description

A semaphore for managing exclusive access to resources across multiple processes.

Provides the ability to limit access to a resource to one process at a time.

The semaphore uses a second semaphore to manage its lifetime. The first process to create it creates the system wide semaphore, and the last to delete it removes the system wide semaphore.

Constructor & Destructor Documentation

Semaphore::Semaphore ( char  id)

Constructor.

Parameters
idan identifier for the semaphore.

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