7 #ifndef __FWCOM_SLOTCALL_HPP__ 8 #define __FWCOM_SLOTCALL_HPP__ 10 #include "fwCom/SlotRun.hpp" 20 template<
typename F >
29 template<
typename R,
typename ... A >
35 typedef R SignatureType (A ...);
37 typedef SPTR ( SelfType ) sptr;
38 typedef WPTR ( SelfType ) wptr;
39 typedef std::shared_future< R > SharedFutureType;
54 virtual R call(A ...)
const = 0;
76 virtual SharedFutureType asyncCall( A ... args )
const;
80 template<
typename WEAKCALL >
81 static std::shared_future< R > postWeakCall(
const SPTR(::
fwThread::Worker)& worker, WEAKCALL f );
88 virtual std::function< R() > bindCall( A ... args )
const;
Namespace containing fw4spl communication tools.
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...