Async_t template class. More...
#include <Async.h>
Public Member Functions | |
Async_t (Object *obj, Func func, bool auto_delete=false) | |
Constructor. | |
virtual void | finalize () |
Finalize the asynchronous function. | |
virtual bool | finished () |
Check on completion state. | |
virtual void | invoke () |
Asynchronous function Activation. | |
virtual int | svc () |
Thread execution function for asynchronous invoke. | |
virtual | ~Async_t () |
Destructor. | |
Private Attributes | |
const bool | m_autodelete |
bool | m_finished |
Func | m_func |
Mutex | m_mutex |
Object * | m_obj |
Async_t template class.
coil::Async_t< Object, Func >::Async_t | ( | Object * | obj, |
Func | func, | ||
bool | auto_delete = false |
||
) | [inline] |
virtual coil::Async_t< Object, Func >::~Async_t | ( | ) | [inline, virtual] |
virtual void coil::Async_t< Object, Func >::finalize | ( | ) | [inline, virtual] |
Finalize the asynchronous function.
Finalize the asynchronous function for preparing it for destruction.
Reimplemented from coil::Task.
virtual bool coil::Async_t< Object, Func >::finished | ( | ) | [inline, virtual] |
Check on completion state.
Return a completion state.
Implements coil::Async.
virtual void coil::Async_t< Object, Func >::invoke | ( | ) | [inline, virtual] |
virtual int coil::Async_t< Object, Func >::svc | ( | void | ) | [inline, virtual] |
Thread execution function for asynchronous invoke.
Invoke the registered objects operation.
Reimplemented from coil::Task.
const bool coil::Async_t< Object, Func >::m_autodelete [private] |
bool coil::Async_t< Object, Func >::m_finished [private] |
Func coil::Async_t< Object, Func >::m_func [private] |
Mutex coil::Async_t< Object, Func >::m_mutex [private] |
Object* coil::Async_t< Object, Func >::m_obj [private] |