Move threading calls into a basic user space library.

This commit is contained in:
Drew Galbraith 2023-06-06 16:56:19 -07:00
parent b0c2a6732b
commit 174d4b10fb
9 changed files with 67 additions and 21 deletions

View file

@ -0,0 +1,3 @@
#pragma once
void dbgln(const char*);

View file

@ -0,0 +1,13 @@
#pragma once
#include <stdint.h>
class Thread {
public:
typedef void (*Entry)(void*);
Thread(Entry e, const void* arg1);
private:
uint64_t thread_cap_;
};