Skip to content

Commit 5d18a81

Browse files
author
Chris Sullivan
committed
Merge branch 'master' of github.com:ExtremeScale/ThreadPool into lockfree_merge
2 parents 4cefdf6 + 4924b1a commit 5d18a81

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

include/ThreadPool.hh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ public:
4242
m_promises[mypromise].set_value();
4343
});
4444
}
45-
//m_taskQueue.pop()(); // master thread is also a worker
4645
Finish();
4746
}
4847
template<typename InputIt, typename T>
@@ -59,10 +58,9 @@ public:
5958
while (threadBegin != threadEnd) {
6059
*(threadOutput++) = func(*(threadBegin++));
6160
}
62-
m_promises[mypromise].set_value(); // master thread is also a worker
61+
m_promises[mypromise].set_value();
6362
});
6463
}
65-
//m_taskQueue.pop()();
6664
Finish();
6765
}
6866

0 commit comments

Comments
 (0)