MistServer  2.5.3-Pro-19-gf5e75b1 ( Generic_64)
Public Member Functions | Private Attributes
IPC::semGuard Class Reference

A class used as a semaphore guard. More...

#include <shared_memory.h>

Public Member Functions

 semGuard (semaphore *thisSemaphore)
 Creates a semaphore guard, locks the semaphore on call. More...
 
 semGuard (semaphore *thisSemaphore)
 
 ~semGuard ()
 
 ~semGuard ()
 Destructs a semaphore guard, unlocks the semaphore on call. More...
 

Private Attributes

semaphoremySemaphore
 The semaphore to guard. More...
 

Detailed Description

A class used as a semaphore guard.

Constructor & Destructor Documentation

IPC::semGuard::semGuard ( semaphore thisSemaphore)

Creates a semaphore guard, locks the semaphore on call.

IPC::semGuard::~semGuard ( )

Destructs a semaphore guard, unlocks the semaphore on call.

IPC::semGuard::semGuard ( semaphore thisSemaphore)
IPC::semGuard::~semGuard ( )

Field Documentation

semaphore * IPC::semGuard::mySemaphore
private

The semaphore to guard.


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