MCPcopy Create free account
hub / github.com/F-Stack/f-stack / DestroyPool

Method DestroyPool

adapter/micro_thread/micro_thread.cpp:416–429  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

414}
415
416void ThreadPool::DestroyPool()
417{
418 MicroThread* thread = NULL;
419 while (!_freelist.empty())
420 {
421 thread = _freelist.front();
422 _freelist.pop();
423 thread->Destroy();
424 delete thread;
425 }
426
427 _total_num = 0;
428 _use_num = 0;
429}
430
431MicroThread* ThreadPool::AllocThread()
432{

Callers 1

DestroyMethod · 0.80

Calls 1

DestroyMethod · 0.45

Tested by

no test coverage detected