SocketMgr::~SocketMgr() { ShutdownThreads(); if (m_hThreads != NULL) delete [] m_hThreads; DecRef(); }
void SocketMgr::Shutdown() { if (m_bShutdown) return; ShutdownThreads(); DecRef(); m_bShutdown = true; }2
ThreadPool::~ThreadPool() { ShutdownThreads((u32)_threads.size()); tlog::debug() << "All threads terminated."; }