Public Member Functions | Private Attributes
icl_core::logging::Semaphore Class Reference

Implements a platform independent mutex. More...

#include <Semaphore.h>

Inheritance diagram for icl_core::logging::Semaphore:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void post ()
 Increments the semaphore.
 Semaphore (size_t initial_value=1)
bool wait ()
virtual ~Semaphore ()

Private Attributes

SemaphoreImplm_impl

Detailed Description

Implements a platform independent mutex.

Definition at line 44 of file Semaphore.h.


Constructor & Destructor Documentation

icl_core::logging::Semaphore::Semaphore ( size_t  initial_value = 1)

Definition at line 30 of file Semaphore.cpp.

Definition at line 61 of file Semaphore.cpp.


Member Function Documentation

Increments the semaphore.

Definition at line 67 of file Semaphore.cpp.

Decrements the semaphore. If the semaphore is unavailable this function blocks.

Returns:
true if the semaphore has been decremented, false otherwise.

Definition at line 72 of file Semaphore.cpp.


Member Data Documentation

Definition at line 79 of file Semaphore.h.


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


schunk_svh_driver
Author(s): Georg Heppner
autogenerated on Fri Aug 28 2015 12:59:20