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

#include <Sem.h>

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

List of all members.

Public Member Functions

void post ()
 Semaphore (size_t initial_value)
bool tryWait ()
bool wait ()
bool wait (const icl_core::TimeSpan &timeout)
bool wait (const icl_core::TimeStamp &timeout)
virtual ~Semaphore ()

Private Attributes

SemaphoreImplm_impl

Detailed Description

Implements a platform independent mutex.

Definition at line 35 of file Sem.h.


Constructor & Destructor Documentation

icl_core::thread::Semaphore::Semaphore ( size_t  initial_value)

Definition at line 30 of file Sem.cpp.

Definition at line 61 of file Sem.cpp.


Member Function Documentation

Increments the semaphore.

Definition at line 67 of file Sem.cpp.

Tries to decrement the semaphore. Does not block if the semaphore is unavailable.

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

Definition at line 72 of file Sem.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 77 of file Sem.cpp.

Decrements the semaphore. If the semaphore is unavailable this function blocks until the relative timeout has elapsed.

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

Definition at line 82 of file Sem.cpp.

Decrements the semaphore. If the semaphore is unavailable this function blocks until the absolute timeout has elapsed.

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

Definition at line 87 of file Sem.cpp.


Member Data Documentation

Definition at line 109 of file Sem.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