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

#include <smacc_state_machine_impl.hpp>

Collaboration diagram for smacc2::utils::Bind< 1 >:
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 312 of file smacc_state_machine_impl.hpp.

Member Function Documentation

◆ bindaux()

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

Definition at line 315 of file smacc_state_machine_impl.hpp.

318 {
319 return signal.connect(
320
321 [=]()
322 {
323 if (callbackCounter == nullptr)
324 {
325 (object->*callback)();
326 }
327 else if (callbackCounter->acquire())
328 {
329 (object->*callback)();
330 callbackCounter->release();
331 }
332 });
333 }

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