diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-01-19 20:35:29 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-01-19 20:35:29 +0000 |
commit | 96a58cc251354954241aa2c9008b25d98daaad92 (patch) | |
tree | 383d379fe8bbf5026a5a0cdea4a376485c65b318 /lib/work.h | |
parent | Factor to support worlds, objects, windows etc (diff) | |
download | ilt-96a58cc251354954241aa2c9008b25d98daaad92.tar.bz2 ilt-96a58cc251354954241aa2c9008b25d98daaad92.tar.xz ilt-96a58cc251354954241aa2c9008b25d98daaad92.zip |
Add basic work and worker thread pool
Well... that requires GCC 11 cos 10 doesn't implement semaphore.
Diffstat (limited to 'lib/work.h')
-rw-r--r-- | lib/work.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/work.h b/lib/work.h new file mode 100644 index 0000000..2374673 --- /dev/null +++ b/lib/work.h @@ -0,0 +1,15 @@ +#ifndef WORK_H +#define WORK_H + +#include <special_members.hpp> + +class Work { +public: + virtual ~Work() = default; + NO_COPY(Work); + NO_MOVE(Work); + + virtual void doWork() = 0; +}; + +#endif |