TrinityCore
Trinity::ThreadPool Class Reference

#include <ThreadPool.h>

Public Member Functions

 ThreadPool (std::size_t numThreads=std::thread::hardware_concurrency())
 
template<typename T >
decltype(auto) PostWork (T &&work)
 
void Join ()
 

Private Attributes

boost::asio::thread_pool _impl
 

Detailed Description

Definition at line 27 of file ThreadPool.h.

Constructor & Destructor Documentation

◆ ThreadPool()

Trinity::ThreadPool::ThreadPool ( std::size_t  numThreads = std::thread::hardware_concurrency())
inlineexplicit

Definition at line 30 of file ThreadPool.h.

Member Function Documentation

◆ Join()

void Trinity::ThreadPool::Join ( )
inline

Definition at line 38 of file ThreadPool.h.

+ Here is the caller graph for this function:

◆ PostWork()

template<typename T >
decltype(auto) Trinity::ThreadPool::PostWork ( T &&  work)
inline

Definition at line 33 of file ThreadPool.h.

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

Member Data Documentation

◆ _impl

boost::asio::thread_pool Trinity::ThreadPool::_impl
private

Definition at line 44 of file ThreadPool.h.


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