summaryrefslogtreecommitdiff
path: root/lib/worker.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/worker.h')
-rw-r--r--lib/worker.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/worker.h b/lib/worker.h
index 136c50e..96593d9 100644
--- a/lib/worker.h
+++ b/lib/worker.h
@@ -33,13 +33,13 @@ private:
private:
void worker();
- using Threads = std::vector<std::thread>;
+ using Threads = std::vector<std::jthread>;
using ToDo = std::deque<WorkPtr>;
- Threads threads;
ToDo todo;
std::counting_semaphore<16> todoLen;
std::mutex todoMutex;
+ Threads threads;
static Worker instance;
};