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;
283 const bool m_autodelete;
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.
Definition: Async.h:394
virtual bool finished()=0
Check on completion state.
virtual void activate()
Create a thread.
Mutex class.
Definition: Mutex.h:40
virtual ~Async_t()
Destructor.
Definition: Async.h:180
Async_ref_t template class.
Definition: Async.h:301
virtual bool finished()
Check on completion state.
Definition: Async.h:274
virtual bool finished()
Check on completion state.
Definition: Async.h:418
virtual void invoke()
Asynchronous function Activation.
Definition: Async.h:250
virtual void finalize()
Finalize the asynchronous function.
Definition: Async.h:229
virtual ~Async()
Destructor.
Definition: Async.h:77
Async_t template class.
Definition: Async.h:132
virtual void invoke()=0
Asynchronous invocation.
Async()
Constructor.
Definition: Async.h:60
Async_ref_t(Object *obj, Func &func, bool auto_delete=false)
Constructor.
Definition: Async.h:329
virtual void finalize()
Finalizing the task.
virtual void finalize()
Finalize the asynchronous function.
Definition: Async.h:438
Async_t(Object *obj, Func func, bool auto_delete=false)
Constructor.
Definition: Async.h:160
Task class.
Definition: Task.h:39
Async class.
Definition: Async.h:41
Guard template class.
Definition: Guard.h:41
virtual int svc()
Thread execution function for asynchronous invoke.
Definition: Async.h:372
virtual ~Async_ref_t()
Destructor.
Definition: Async.h:349
virtual int svc()
Thread execution function for asynchronous invoke.
Definition: Async.h:203
Async_t< Object, Func > * AsyncInvoker(Object *obj, Func func, bool auto_delete=false)
Helper function for async member function summons.
Definition: Async.h:550
Common Object Interface Layer.
Definition: Affinity.h:28