diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-04-14 10:26:51 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-04-14 11:15:56 +0100 |
commit | 1cbf18ff8463946aa5a09ccf1d6873b222b912b6 (patch) | |
tree | eb7921b1b2099a3d34928841734010d6e3f7701e /lib/work.h | |
parent | Global worker instance (diff) | |
download | ilt-1cbf18ff8463946aa5a09ccf1d6873b222b912b6.tar.bz2 ilt-1cbf18ff8463946aa5a09ccf1d6873b222b912b6.tar.xz ilt-1cbf18ff8463946aa5a09ccf1d6873b222b912b6.zip |
Simplify worker with jthread
Moves thread collection to bottom of class so threads are joined before
job storage is destroyed.
Diffstat (limited to 'lib/work.h')
-rw-r--r-- | lib/work.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/work.h b/lib/work.h deleted file mode 100644 index c780e13..0000000 --- a/lib/work.h +++ /dev/null @@ -1,12 +0,0 @@ -#pragma once - -#include <special_members.hpp> - -class Work { -public: - virtual ~Work() = default; - NO_COPY(Work); - NO_MOVE(Work); - - virtual void doWork() = 0; -}; |