Otclient  14/8/2020
AsyncDispatcher Class Reference

#include <asyncdispatcher.h>

Public Member Functions

void init ()
 
void terminate ()
 
void spawn_thread ()
 
void stop ()
 
template<class F >
boost::shared_future< typename std::result_of< F()>::type > schedule (const F &task)
 

Protected Member Functions

void exec_loop ()
 

Detailed Description

Definition at line 29 of file asyncdispatcher.h.

Member Function Documentation

◆ exec_loop()

void AsyncDispatcher::exec_loop ( )
protected

Definition at line 55 of file asyncdispatcher.cpp.

Here is the caller graph for this function:

◆ init()

void AsyncDispatcher::init ( )

Definition at line 27 of file asyncdispatcher.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ schedule()

template<class F >
boost::shared_future<typename std::result_of<F()>::type> AsyncDispatcher::schedule ( const F &  task)
inline

Definition at line 38 of file asyncdispatcher.h.

Here is the call graph for this function:

◆ spawn_thread()

void AsyncDispatcher::spawn_thread ( )

Definition at line 38 of file asyncdispatcher.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ stop()

void AsyncDispatcher::stop ( )

Definition at line 44 of file asyncdispatcher.cpp.

Here is the caller graph for this function:

◆ terminate()

void AsyncDispatcher::terminate ( )

Definition at line 32 of file asyncdispatcher.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

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