SMACC
Loading...
Searching...
No Matches
Public Member Functions | List of all members
smacc::utils::Bind< 2 > Struct Reference

#include <smacc_state_machine_impl.h>

Collaboration diagram for smacc::utils::Bind< 2 >:
Collaboration graph

Public Member Functions

template<typename TSmaccSignal , typename TMemberFunctionPrototype , typename TSmaccObjectType >
boost::signals2::connection bindaux (TSmaccSignal &signal, TMemberFunctionPrototype callback, TSmaccObjectType *object, std::shared_ptr< CallbackCounterSemaphore > callbackCounter)
 

Detailed Description

Definition at line 278 of file smacc_state_machine_impl.h.

Member Function Documentation

◆ bindaux()

template<typename TSmaccSignal , typename TMemberFunctionPrototype , typename TSmaccObjectType >
boost::signals2::connection smacc::utils::Bind< 2 >::bindaux ( TSmaccSignal &  signal,
TMemberFunctionPrototype  callback,
TSmaccObjectType *  object,
std::shared_ptr< CallbackCounterSemaphore callbackCounter 
)
inline

Definition at line 281 of file smacc_state_machine_impl.h.

282 {
283 return signal.connect([=](auto a1)
284 {
285 if(callbackCounter == nullptr)
286 {
287 (object->*callback)(a1);
288 }
289 else if (callbackCounter->acquire())
290 {
291 (object->*callback)(a1);
292 callbackCounter->release();
293
294 }
295 });
296 }

The documentation for this struct was generated from the following file: