6 #ifndef __FWCOM_SLOTRUN_HPP__ 7 #define __FWCOM_SLOTRUN_HPP__ 9 #include "fwCom/SlotBase.hpp" 22 template<
typename F >
30 template<
typename ... A >
37 typedef void SignatureType (A ...);
39 typedef SPTR ( SelfType ) sptr;
40 typedef WPTR ( SelfType ) wptr;
51 virtual void run(A ...
a)
const = 0;
76 template<
typename R,
typename WEAKCALL >
77 static std::shared_future< R > postWeakCall(
const SPTR(::
fwThread::Worker)& worker, WEAKCALL f );
84 virtual std::function< void() > bindRun( A ... args )
const;
Namespace containing fw4spl communication tools.
Base class for Slot implementations.
This class creates and manages a task loop. The default implementation create a loop in a new thread...
This namespace fwThread provides few tools to execute asynchronous tasks on different threads...
std::shared_future< void > VoidSharedFutureType
SlotBase::asyncRun return type.