summaryrefslogtreecommitdiff
path: root/application
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-01-19 20:35:29 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2021-01-19 20:35:29 +0000
commit96a58cc251354954241aa2c9008b25d98daaad92 (patch)
tree383d379fe8bbf5026a5a0cdea4a376485c65b318 /application
parentFactor to support worlds, objects, windows etc (diff)
downloadilt-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 'application')
-rw-r--r--application/main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/application/main.cpp b/application/main.cpp
index 73f337b..ed3c1c7 100644
--- a/application/main.cpp
+++ b/application/main.cpp
@@ -13,6 +13,7 @@
#include <memory>
#include <numbers>
#include <special_members.hpp>
+#include <worker.h>
static const int DISPLAY_WIDTH = 800;
static const int DISPLAY_HEIGHT = 600;
@@ -60,6 +61,8 @@ public:
Collection<Window> windows;
windows.create(DISPLAY_WIDTH, DISPLAY_HEIGHT, "OpenGL");
+ Worker w;
+
World world;
world.create<Monkey>();