summaryrefslogtreecommitdiff
path: root/backend/Header.h
diff options
context:
space:
mode:
Diffstat (limited to 'backend/Header.h')
-rw-r--r--backend/Header.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/backend/Header.h b/backend/Header.h
new file mode 100644
index 0000000..5282066
--- /dev/null
+++ b/backend/Header.h
@@ -0,0 +1,23 @@
+#pragma once
+
+#ifdef WIN32
+
+#include <Windows.h>
+
+#else
+// TODO: Support Linux threads
+#include <pthread.h>
+#endif
+
+struct ThreadInstance {
+ DWORD mThreadId;
+ HANDLE mThreadHandle;
+};
+
+bool initThreadInstance(ThreadInstance* instance) {
+ instance->mThreadHandle = CreateThread(NULL, 0,, NULL, 0, NULL);
+}
+
+struct ThreadPool {
+
+}; \ No newline at end of file