[pzstd] Fix lantent bug in WorkQueue::push()
This commit is contained in:
1 parent
baa152e56e
commit
8c6c686d0a
3 files changed
+21
-7
No files matched your search
@@ -27,7 +27,7 @@ class ThreadPool {
|
||||
explicit ThreadPool(std::size_t numThreads) {
|
||||
threads_.reserve(numThreads);
|
||||
for (std::size_t i = 0; i < numThreads; ++i) {
|
||||
threads_.emplace_back([&] {
|
||||
threads_.emplace_back([this] {
|
||||
std::function<void()> task;
|
||||
while (tasks_.pop(task)) {
|
||||
task();
|
||||
|
||||
Reference in new issue
Block a user