Skip to content

Commit 1ada200

Browse files
author
Chris Sullivan
committed
Everything is now header only
1 parent 0264b41 commit 1ada200

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

include/ThreadPoolBase.hh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ public:
2222

2323
virtual void Worker() = 0;
2424
virtual void CleanUp() { m_stopWorkers = true; }
25-
void JoinAll();
25+
void JoinAll() {
26+
for (auto& worker : m_workers) { worker.join(); }
27+
}
2628

2729
template <typename T, typename... Params>
2830
void ParallelFor(uint32_t begin, uint32_t end, uint32_t n_tasks, T SerialFunction, Params&&... params) {

src/ThreadPoolBase.cc

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)