SMACC
|
#include <callback_counter_semaphore.h>
Public Member Functions | |
CallbackCounterSemaphore (std::string name, int count=0) | |
bool | acquire () |
void | release () |
void | finalize () |
void | addConnection (boost::signals2::connection conn) |
Private Attributes | |
int | count_ |
std::mutex | mutex_ |
std::condition_variable | cv_ |
std::vector< boost::signals2::connection > | connections_ |
bool | finalized = false |
std::string | name_ |
Definition at line 18 of file callback_counter_semaphore.h.
smacc::CallbackCounterSemaphore::CallbackCounterSemaphore | ( | std::string | name, |
int | count = 0 |
||
) |
Definition at line 17 of file callback_counter_semaphore.cpp.
bool smacc::CallbackCounterSemaphore::acquire | ( | ) |
Definition at line 19 of file callback_counter_semaphore.cpp.
void smacc::CallbackCounterSemaphore::addConnection | ( | boost::signals2::connection | conn | ) |
Definition at line 61 of file callback_counter_semaphore.cpp.
References connections_, finalized, mutex_, and name_.
void smacc::CallbackCounterSemaphore::finalize | ( | ) |
Definition at line 44 of file callback_counter_semaphore.cpp.
References connections_, count_, cv_, finalized, mutex_, and name_.
void smacc::CallbackCounterSemaphore::release | ( | ) |
|
private |
Definition at line 33 of file callback_counter_semaphore.h.
Referenced by addConnection(), and finalize().
|
private |
Definition at line 30 of file callback_counter_semaphore.h.
Referenced by acquire(), finalize(), and release().
|
private |
Definition at line 32 of file callback_counter_semaphore.h.
Referenced by acquire(), finalize(), and release().
|
private |
Definition at line 34 of file callback_counter_semaphore.h.
Referenced by acquire(), addConnection(), and finalize().
|
private |
Definition at line 31 of file callback_counter_semaphore.h.
Referenced by acquire(), addConnection(), finalize(), and release().
|
private |
Definition at line 35 of file callback_counter_semaphore.h.
Referenced by acquire(), addConnection(), finalize(), and release().