mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core/Network: Refactor AsyncAcceptor to use async_accept overload producing sockets through argument instead of having to preallocate it
* Also improve main() cleanup to fully process all queued async operations (including their cancellations)
This commit is contained in:
@@ -27,6 +27,8 @@ namespace Trinity
|
||||
class ThreadPool
|
||||
{
|
||||
public:
|
||||
using executor_type = boost::asio::thread_pool::executor_type;
|
||||
|
||||
explicit ThreadPool(std::size_t numThreads = std::thread::hardware_concurrency()) : _impl(numThreads) { }
|
||||
|
||||
template<typename T>
|
||||
|
||||
Reference in New Issue
Block a user