MeVisLab Toolbox Reference
asio::ScopedSemaphoreAccess Class Referencefinal

A scoped semaphore access object that increments on construction and decrements on destruction. More...

#include <Semaphore.h>

Public Member Functions

 ScopedSemaphoreAccess (Semaphore &semaphore)
 
 ScopedSemaphoreAccess (const ScopedSemaphoreAccess &other)
 
 ~ScopedSemaphoreAccess ()
 

Detailed Description

A scoped semaphore access object that increments on construction and decrements on destruction.

Synopsis:

{
asio::Semaphore semaphore;
{
asio::ScopedSemaphoreAccess access(semaphore); // increment semaphore
} // decrement semaphore
} // destroy free semaphore
A scoped semaphore access object that increments on construction and decrements on destruction.
Definition Semaphore.h:72
A simple semaphore with increment and decrement functionality.
Definition Semaphore.h:40

Definition at line 71 of file Semaphore.h.

Constructor & Destructor Documentation

◆ ScopedSemaphoreAccess() [1/2]

asio::ScopedSemaphoreAccess::ScopedSemaphoreAccess ( Semaphore & semaphore)

◆ ScopedSemaphoreAccess() [2/2]

asio::ScopedSemaphoreAccess::ScopedSemaphoreAccess ( const ScopedSemaphoreAccess & other)

◆ ~ScopedSemaphoreAccess()

asio::ScopedSemaphoreAccess::~ScopedSemaphoreAccess ( )

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