Public Member Functions | Private Attributes | List of all members
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]

Public Member Functions

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

Private Attributes

SemaphoreImplm_impl
 

Additional Inherited Members

- Protected Member Functions inherited from icl_core::Noncopyable
 Noncopyable ()
 
virtual ~Noncopyable ()
 

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 43 of file Semaphore.cpp.

icl_core::logging::Semaphore::~Semaphore ( )
virtual

Definition at line 74 of file Semaphore.cpp.

Member Function Documentation

void icl_core::logging::Semaphore::post ( )

Increments the semaphore.

Definition at line 80 of file Semaphore.cpp.

bool icl_core::logging::Semaphore::wait ( )

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

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

Definition at line 85 of file Semaphore.cpp.

Member Data Documentation

SemaphoreImpl* icl_core::logging::Semaphore::m_impl
private

Definition at line 79 of file Semaphore.h.


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


fzi_icl_core
Author(s):
autogenerated on Mon Jun 10 2019 13:17:59