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

Manages locking and unlocking of a mutes. More...

#include <ScopedSemaphore.h>

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

List of all members.

Public Member Functions

bool isDecremented () const
 Check if the semaphore has been successfully decremented.
 operator bool () const
 Implicit conversion to bool.
 ScopedSemaphore (Semaphore &semaphore)
 Decrements the semaphore.
 ~ScopedSemaphore ()
 Increments the semaphore.

Private Attributes

bool m_is_decremented
Semaphorem_semaphore

Detailed Description

Manages locking and unlocking of a mutes.

Locks or tries to lock a mutex in the constructor and unlocks it in the destructor.

Definition at line 37 of file ScopedSemaphore.h.


Constructor & Destructor Documentation

Decrements the semaphore.

Definition at line 17 of file ScopedSemaphore.cpp.

Increments the semaphore.

Definition at line 27 of file ScopedSemaphore.cpp.


Member Function Documentation

Check if the semaphore has been successfully decremented.

Definition at line 47 of file ScopedSemaphore.h.

icl_core::logging::ScopedSemaphore::operator bool ( ) const [inline]

Implicit conversion to bool.

Definition at line 50 of file ScopedSemaphore.h.


Member Data Documentation

Definition at line 65 of file ScopedSemaphore.h.

Definition at line 64 of file ScopedSemaphore.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