diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-04-14 11:54:45 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-04-14 11:54:45 +0100 |
commit | aa77548bd637ffd1a7461136e6206906dc4c61c7 (patch) | |
tree | d072bbb555685c1eaad250fdd7a02b7a918e3b24 /lib/worker.cpp | |
parent | Simplify worker with jthread (diff) | |
download | ilt-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.cpp | 3 |
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(); |