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 50 of file ScopedSemaphore.h.


Constructor & Destructor Documentation

Decrements the semaphore.

Definition at line 30 of file ScopedSemaphore.cpp.

Increments the semaphore.

Definition at line 40 of file ScopedSemaphore.cpp.


Member Function Documentation

Check if the semaphore has been successfully decremented.

Definition at line 60 of file ScopedSemaphore.h.

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

Implicit conversion to bool.

Definition at line 63 of file ScopedSemaphore.h.


Member Data Documentation

Definition at line 78 of file ScopedSemaphore.h.

Definition at line 77 of file ScopedSemaphore.h.


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


fzi_icl_core
Author(s):
autogenerated on Tue Aug 8 2017 02:28:05