summaryrefslogtreecommitdiff
path: root/src/core/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/include')
-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