MCPcopy Create free account
hub / github.com/BoevaLab/FREEC / isOneThreadFinished

Method isOneThreadFinished

src/ThreadPool.cpp:139–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137}
138
139Thread* ThreadPool::isOneThreadFinished(std::map<Thread*, bool>& thread_map)
140{
141 std::map<Thread*, bool>::iterator begin = thread_map.begin();
142 std::map<Thread*, bool>::iterator end = thread_map.end();
143 while (begin != end) {
144 Thread* thread = (*begin).first;
145 if (thread->waitFinished()) {
146 return thread;
147 }
148 ++begin;
149 }
150 return NULL;
151}
152
153ThreadPool::~ThreadPool()
154{

Callers

nothing calls this directly

Calls 1

waitFinishedMethod · 0.80

Tested by

no test coverage detected