22 #include <coil/Task.h> 23 #include <coil/Guard.h> 131 template <
typename Object,
typename Func>
160 Async_t(Object* obj, Func func,
bool auto_delete =
false)
161 : m_obj(obj), m_func(func), m_finished(false), m_autodelete(auto_delete)
232 if (m_autodelete)
delete this;
300 template <
typename Object,
typename Func>
330 : m_obj(obj), m_func(func), m_finished(false), m_autodelete(auto_delete)
441 if (m_autodelete)
delete this;
548 template <
typename Object,
typename Func>
582 template <
typename Object,
typename Func>
592 #endif // COIL_ASYNC_H virtual void invoke()
Asynchronous function Activation.
virtual bool finished()=0
Check on completion state.
virtual ~Async_t()
Destructor.
Async_ref_t template class.
virtual bool finished()
Check on completion state.
virtual bool finished()
Check on completion state.
virtual void invoke()
Asynchronous function Activation.
virtual void finalize()
Finalize the asynchronous function.
virtual ~Async()
Destructor.
virtual void invoke()=0
Asynchronous invocation.
Async_ref_t(Object *obj, Func &func, bool auto_delete=false)
Constructor.
virtual void finalize()
Finalize the asynchronous function.
Async_t(Object *obj, Func func, bool auto_delete=false)
Constructor.
virtual int svc()
Thread execution function for asynchronous invoke.
virtual ~Async_ref_t()
Destructor.
virtual int svc()
Thread execution function for asynchronous invoke.
virtual void activate()
Create a thread.
virtual void finalize()
Finalizing the task.
Async_t< Object, Func > * AsyncInvoker(Object *obj, Func func, bool auto_delete=false)
Helper function for async member function summons.
Common Object Interface Layer.