Public Member Functions | Private Member Functions | Private Attributes

AsyncWorker< T > Class Template Reference

#include <AsyncWorker.h>

List of all members.

Public Member Functions

 AsyncWorker (boost::function< T()> async_func, boost::function< void(T)> async_callback)
virtual ~AsyncWorker ()
virtual void start ()

Private Member Functions

void _signal ()
void _thread_func ()

Private Attributes

boost::function< T()> m_async_func
boost::function< void(T)> m_async_callback
boost::shared_ptr< Synchronizerm_synchronizer
boost::shared_ptr< asio::thread > m_thread_ptr

template<class T>
class AsyncWorker< T >

Constructor & Destructor Documentation

template<class T >
AsyncWorker< T >::AsyncWorker ( boost::function< T()>  async_func,
boost::function< void(T)>  async_callback 
) [inline]
template<class T >
virtual AsyncWorker< T >::~AsyncWorker (  )  [inline, virtual]

Member Function Documentation

template<class T >
void AsyncWorker< T >::_signal (  )  [inline, private]
template<class T >
void AsyncWorker< T >::_thread_func (  )  [inline, private]
template<class T >
virtual void AsyncWorker< T >::start (  )  [inline, virtual]

Member Data Documentation

template<class T >
boost::function<void (T)> AsyncWorker< T >::m_async_callback [private]
template<class T >
boost::function<T ()> AsyncWorker< T >::m_async_func [private]
template<class T >
T AsyncWorker< T >::m_func_result [private]
template<class T >
boost::shared_ptr<Synchronizer> AsyncWorker< T >::m_synchronizer [private]
template<class T >
boost::shared_ptr<asio::thread> AsyncWorker< T >::m_thread_ptr [private]

The documentation for this class was generated from the following file: