| 21 | } |
| 22 | |
| 23 | ThreadGroup::~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 | |
| 34 | void ThreadGroup::Add(const std::function<void ()>& callback, size_t count) |
| 35 | { |
nothing calls this directly
no test coverage detected