![]() |
TrinityCore
|
#include <ThreadPool.h>
Public Types | |
| using | executor_type = boost::asio::thread_pool::executor_type |
Public Member Functions | |
| ThreadPool (std::size_t numThreads=std::thread::hardware_concurrency()) | |
| template<typename T > | |
| decltype(auto) | PostWork (T &&work) |
| void | Join () |
| void | Stop () |
Private Attributes | |
| boost::asio::thread_pool | _impl |
Definition at line 27 of file ThreadPool.h.
| using Trinity::ThreadPool::executor_type = boost::asio::thread_pool::executor_type |
Definition at line 30 of file ThreadPool.h.
|
inlineexplicit |
Definition at line 32 of file ThreadPool.h.
|
inline |
Definition at line 40 of file ThreadPool.h.
References _impl.
Referenced by VMAP::TileAssembler::convertWorld2(), ObjectMgr::InitializeQueriesData(), and ParsMapFiles().
|
inline |
Definition at line 35 of file ThreadPool.h.
References _impl.
Referenced by VMAP::TileAssembler::convertWorld2(), ObjectMgr::InitializeQueriesData(), and ParsMapFiles().
|
inline |
Definition at line 45 of file ThreadPool.h.
References _impl.
Referenced by VMAP::TileAssembler::convertWorld2().
|
private |
Definition at line 51 of file ThreadPool.h.
Referenced by Join(), PostWork(), and Stop().