summaryrefslogtreecommitdiff
path: root/src/core/include/engine
diff options
context:
space:
mode:
author0scar <qgt268@alumni.ku.dk>2024-02-06 13:35:37 +0000
committer0scar <qgt268@alumni.ku.dk>2024-02-06 13:35:37 +0000
commitccf5583e6494fe5dd7730f00ea1295dae8154757 (patch)
tree1f38737c31f6e4d4aad7aeb5a4f65c9089654fff /src/core/include/engine
parent5aeb4975d9bbbcea73eab014e92c69efa3da2f9f (diff)
Add threads (?)
Diffstat (limited to 'src/core/include/engine')
-rw-r--r--src/core/include/engine/core/thread.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/core/include/engine/core/thread.h b/src/core/include/engine/core/thread.h
new file mode 100644
index 0000000..ee61893
--- /dev/null
+++ b/src/core/include/engine/core/thread.h
@@ -0,0 +1,12 @@
+#ifndef THREAD_H
+#define THREAD_H
+
+#include <engine/core/types.h>
+
+typedef u64 thread_t;
+typedef void*(thread_fn(void*));
+
+thread_t thread_spawn(thread_fn* routine, void* arg);
+void thread_join(thread_t thread);
+
+#endif