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

#include <smacc_state_machine_impl.hpp>

Collaboration diagram for smacc2::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 385 of file smacc_state_machine_impl.hpp.

Member Function Documentation

◆ bindaux()

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

Definition at line 388 of file smacc_state_machine_impl.hpp.

391 {
392 return signal.connect(
393 [=](auto a1, auto a2, auto a3)
394 {
395 if (callbackCounter == nullptr)
396 {
397 return (object->*callback)(a1, a2, a3);
398 }
399 else if (callbackCounter->acquire())
400 {
401 (object->*callback)(a1, a2, a3);
402 callbackCounter->release();
403 }
404 });
405 }

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