|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <BoostAsioThread.h>
Public Types | |
| typedef std::function< void()> | Hook |
Public Member Functions | |
| IoContextThread () | |
| bool | IsRunning () const |
| int | Join () |
| int | Start (IoContextExecutor &executor, Hook preRun=Hook(), Hook postRun=Hook()) |
| ~IoContextThread () | |
Private Member Functions | |
| void | Run (IoContextExecutor *executor) |
Private Attributes | |
| Hook | _postRun |
| Hook | _preRun |
| std::atomic< bool > | _running |
| std::thread | _thread |
Definition at line 20 of file BoostAsioThread.h.
| typedef std::function<void()> Skyfire::Asio::IoContextThread::Hook |
Definition at line 23 of file BoostAsioThread.h.
|
inline |
Definition at line 25 of file BoostAsioThread.h.
References _running.
|
inline |
Definition at line 27 of file BoostAsioThread.h.
References Join().
|
inline |
Definition at line 32 of file BoostAsioThread.h.
References _running.
|
inline |
Definition at line 58 of file BoostAsioThread.h.
References _postRun, _preRun, _running, and _thread.
Referenced by ~IoContextThread().
|
inlineprivate |
Definition at line 70 of file BoostAsioThread.h.
References _postRun, _preRun, and Skyfire::Asio::IoContextExecutor::Run().
Referenced by Start().
|
inline |
|
private |
Definition at line 83 of file BoostAsioThread.h.
|
private |
Definition at line 82 of file BoostAsioThread.h.
|
private |
Definition at line 84 of file BoostAsioThread.h.
Referenced by IoContextThread(), IsRunning(), Join(), and Start().
|
private |
Definition at line 81 of file BoostAsioThread.h.