|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <BoostAsioThreadGroup.h>
Public Types | |
| typedef std::function< void()> | Hook |
Public Member Functions | |
| void | Drain () |
| void | DrainAndJoin () |
| IoContextExecutor & | GetExecutor () |
| boost::asio::io_context & | GetIoContext () |
| IoContextThreadGroup () | |
| bool | IsRunning () const |
| void | Join () |
| int | Start (std::size_t threadCount, Hook preRun=Hook(), Hook postRun=Hook()) |
| void | Stop () |
| void | StopAndJoin () |
| ~IoContextThreadGroup () | |
Private Attributes | |
| IoContextExecutor | _executor |
| Hook | _postRun |
| Hook | _preRun |
| std::atomic< bool > | _running |
| std::vector< std::unique_ptr< IoContextThread > > | _threads |
Definition at line 22 of file BoostAsioThreadGroup.h.
| typedef std::function<void()> Skyfire::Asio::IoContextThreadGroup::Hook |
Definition at line 25 of file BoostAsioThreadGroup.h.
|
inline |
Definition at line 27 of file BoostAsioThreadGroup.h.
|
inline |
Definition at line 29 of file BoostAsioThreadGroup.h.
References StopAndJoin().
|
inline |
Definition at line 75 of file BoostAsioThreadGroup.h.
References _executor.
Referenced by DrainAndJoin().
|
inline |
Definition at line 97 of file BoostAsioThreadGroup.h.
|
inline |
Definition at line 34 of file BoostAsioThreadGroup.h.
References _executor.
|
inline |
Definition at line 35 of file BoostAsioThreadGroup.h.
References _executor.
|
inline |
Definition at line 36 of file BoostAsioThreadGroup.h.
References _running.
|
inline |
Definition at line 86 of file BoostAsioThreadGroup.h.
References _postRun, _preRun, _running, and _threads.
Referenced by DrainAndJoin(), and StopAndJoin().
|
inline |
Definition at line 38 of file BoostAsioThreadGroup.h.
References _executor, _postRun, _preRun, _running, _threads, and StopAndJoin().
|
inline |
Definition at line 80 of file BoostAsioThreadGroup.h.
References _executor.
Referenced by StopAndJoin().
|
inline |
Definition at line 103 of file BoostAsioThreadGroup.h.
References Join(), and Stop().
Referenced by Start(), and ~IoContextThreadGroup().
|
private |
Definition at line 110 of file BoostAsioThreadGroup.h.
Referenced by Drain(), GetExecutor(), GetIoContext(), IoContextThreadGroup(), Start(), and Stop().
|
private |
Definition at line 113 of file BoostAsioThreadGroup.h.
|
private |
Definition at line 112 of file BoostAsioThreadGroup.h.
|
private |
Definition at line 114 of file BoostAsioThreadGroup.h.
Referenced by IoContextThreadGroup(), IsRunning(), Join(), and Start().
|
private |
Definition at line 111 of file BoostAsioThreadGroup.h.