| 
    SMACC2
    
   | 
 
#include <callback_counter_semaphore.hpp>

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 31 of file callback_counter_semaphore.hpp.
| smacc2::CallbackCounterSemaphore::CallbackCounterSemaphore | ( | std::string | name, | 
| int | count = 0  | 
        ||
| ) | 
Definition at line 30 of file callback_counter_semaphore.cpp.
| bool smacc2::CallbackCounterSemaphore::acquire | ( | ) | 
Definition at line 35 of file callback_counter_semaphore.cpp.
| void smacc2::CallbackCounterSemaphore::addConnection | ( | boost::signals2::connection | conn | ) | 
Definition at line 91 of file callback_counter_semaphore.cpp.
References connections_, finalized, mutex_, and name_.
| void smacc2::CallbackCounterSemaphore::finalize | ( | ) | 
Definition at line 70 of file callback_counter_semaphore.cpp.
References connections_, count_, cv_, finalized, mutex_, and name_.
| void smacc2::CallbackCounterSemaphore::release | ( | ) | 
Definition at line 59 of file callback_counter_semaphore.cpp.
      
  | 
  private | 
Definition at line 47 of file callback_counter_semaphore.hpp.
Referenced by addConnection(), and finalize().
      
  | 
  private | 
Definition at line 44 of file callback_counter_semaphore.hpp.
Referenced by acquire(), finalize(), and release().
      
  | 
  private | 
Definition at line 46 of file callback_counter_semaphore.hpp.
Referenced by acquire(), finalize(), and release().
      
  | 
  private | 
Definition at line 48 of file callback_counter_semaphore.hpp.
Referenced by acquire(), addConnection(), and finalize().
      
  | 
  private | 
Definition at line 45 of file callback_counter_semaphore.hpp.
Referenced by acquire(), addConnection(), finalize(), and release().
      
  | 
  private | 
Definition at line 49 of file callback_counter_semaphore.hpp.
Referenced by acquire(), addConnection(), finalize(), and release().