summaryrefslogtreecommitdiff
path: root/lib/worker.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2023-04-14 11:54:45 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2023-04-14 11:54:45 +0100
commitaa77548bd637ffd1a7461136e6206906dc4c61c7 (patch)
treed072bbb555685c1eaad250fdd7a02b7a918e3b24 /lib/worker.cpp
parentSimplify worker with jthread (diff)
downloadilt-aa77548bd637ffd1a7461136e6206906dc4c61c7.tar.bz2
ilt-aa77548bd637ffd1a7461136e6206906dc4c61c7.tar.xz
ilt-aa77548bd637ffd1a7461136e6206906dc4c61c7.zip
New WorkItem/job/promise/future based interface
Diffstat (limited to 'lib/worker.cpp')
-rw-r--r--lib/worker.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/worker.cpp b/lib/worker.cpp
index 4f1352d..7e7f296 100644
--- a/lib/worker.cpp
+++ b/lib/worker.cpp
@@ -1,5 +1,4 @@
#include "worker.h"
-#include "work.h"
#include <algorithm>
#include <iterator>
#include <mutex>
@@ -19,7 +18,7 @@ Worker::~Worker()
}
void
-Worker::addWork(WorkPtr j)
+Worker::addWorkPtr(WorkPtr j)
{
std::lock_guard<std::mutex> lck {todoMutex};
todoLen.release();