summaryrefslogtreecommitdiff
path: root/lib/worker.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2023-04-14 10:24:10 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2023-04-14 10:24:10 +0100
commit4bf94458d5d7abafb154e914620dc758d26719c2 (patch)
tree95a1d5db3c27b0069318798c90dc5e8ff093dc1f /lib/worker.cpp
parentExternalise a neater definition of TGAHead (diff)
downloadilt-4bf94458d5d7abafb154e914620dc758d26719c2.tar.bz2
ilt-4bf94458d5d7abafb154e914620dc758d26719c2.tar.xz
ilt-4bf94458d5d7abafb154e914620dc758d26719c2.zip
Global worker instance
Diffstat (limited to 'lib/worker.cpp')
-rw-r--r--lib/worker.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/worker.cpp b/lib/worker.cpp
index fd255c7..cf59f56 100644
--- a/lib/worker.cpp
+++ b/lib/worker.cpp
@@ -1,9 +1,10 @@
#include "worker.h"
-#if __cpp_lib_semaphore
-# include "work.h"
-# include <algorithm>
-# include <iterator>
-# include <mutex>
+#include "work.h"
+#include <algorithm>
+#include <iterator>
+#include <mutex>
+
+Worker Worker::instance;
Worker::Worker() : todoLen {0}
{
@@ -45,4 +46,3 @@ Worker::worker()
j->doWork();
}
}
-#endif