Skip to content

Commit 43219bc

Browse files
author
Joshua Bradt
committed
Added explicit initialization of m_stopWorkers.
1 parent 8fa1f0c commit 43219bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/ThreadPoolBase.hh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ typedef std::function<void()> WorkType;
1515

1616
class ThreadPoolBase {
1717
public:
18-
ThreadPoolBase() = default;
18+
ThreadPoolBase() : m_stopWorkers(false) {}
1919

2020
virtual void AddTask(function<void()> task) = 0;
2121

0 commit comments

Comments
 (0)