From ccf5583e6494fe5dd7730f00ea1295dae8154757 Mon Sep 17 00:00:00 2001 From: 0scar Date: Tue, 6 Feb 2024 14:35:37 +0100 Subject: Add threads (?) --- src/core/include/engine/core/thread.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/core/include/engine/core/thread.h (limited to 'src/core/include') 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 + +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 -- cgit v1.3