Пример #1
0
ThreadPool::~ThreadPool()
{
    // Release resources
    if (m_pool_state != STOPPED) {
        destroy_threadpool();
    }
}
Пример #2
0
thread_pool_t::~ thread_pool_t ( )
{
    if ( _running )
    {
        destroy_threadpool ();
    }
}