29template <
typename AsyncCB,
typename Orthogonal>
34template <
typename AsyncCB,
typename Orthogonal>
39template <
typename AsyncCB,
typename Orthogonal>
59 template <
typename TOrthogonal,
typename TSourceObject>
72 template <
typename TCallback,
typename T>
75 template <
typename TCallback,
typename T>
78 template <
typename TCallback,
typename T>
std::function< void()> postSuccessEventFn_
~SmaccAsyncClientBehavior() override
std::function< void()> postFinishEventFn_
void executeOnEntry() override
SmaccSignal< void()> onFinished_
SmaccSignal< void()> onFailure_
smacc2::SmaccSignalConnection onFailure(TCallback callback, T *object)
bool isShutdownRequested()
onEntry is executed in a new thread. However the current state cannot be left until the onEntry threa...
SmaccAsyncClientBehavior & operator=(SmaccAsyncClientBehavior &&)=delete
std::optional< std::future< int > > onExitThread_
std::optional< std::future< int > > onEntryThread_
void waitFutureIfNotFinished(std::optional< std::future< int > > &threadfut, bool requestFinish)
smacc2::SmaccSignalConnection onSuccess(TCallback callback, T *object)
SmaccAsyncClientBehavior()=default
SmaccAsyncClientBehavior(const SmaccAsyncClientBehavior &)=delete
std::atomic< bool > isShutdownRequested_
void onStateOrthogonalAllocation()
void requestForceFinish()
void executeOnExit() override
smacc2::SmaccSignalConnection onFinished(TCallback callback, T *object)
SmaccAsyncClientBehavior(SmaccAsyncClientBehavior &&)=delete
std::function< void()> postFailureEventFn_
SmaccAsyncClientBehavior & operator=(const SmaccAsyncClientBehavior &)=delete
SmaccSignal< void()> onSuccess_
void waitOnEntryThread(bool requestFinish)
boost::signals2::connection SmaccSignalConnection