MCPcopy Create free account
hub / github.com/chen3feng/toft / ~ThreadGroup

Method ~ThreadGroup

system/threading/thread_group.cpp:23–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23ThreadGroup::~ThreadGroup()
24{
25 for (size_t i = 0; i < m_threads.size(); ++i)
26 {
27 if (m_threads[i]->IsJoinable())
28 m_threads[i]->Join();
29 delete m_threads[i];
30 }
31 m_threads.clear();
32}
33
34void ThreadGroup::Add(const std::function<void ()>& callback, size_t count)
35{

Callers

nothing calls this directly

Calls 4

sizeMethod · 0.45
IsJoinableMethod · 0.45
JoinMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected