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

#include <smacc_state_machine_impl.h>

Collaboration diagram for smacc::utils::Bind< 4 >:
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 321 of file smacc_state_machine_impl.h.

Member Function Documentation

◆ bindaux()

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

Definition at line 324 of file smacc_state_machine_impl.h.

325 {
326 return signal.connect([=](auto a1, auto a2, auto a3) {
327 if(callbackCounter == nullptr)
328 {
329 (object->*callback)(a1,a2,a3);
330 }
331 else if (callbackCounter->acquire())
332 {
333 (object->*callback)(a1,a2,a3);
334 callbackCounter->release();
335
336 }
337 });
338
339 }

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