Move threading calls into a basic user space library.
This commit is contained in:
parent
b0c2a6732b
commit
174d4b10fb
9 changed files with 67 additions and 21 deletions
3
lib/mammoth/include/mammoth/debug.h
Normal file
3
lib/mammoth/include/mammoth/debug.h
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
#pragma once
|
||||
|
||||
void dbgln(const char*);
|
||||
13
lib/mammoth/include/mammoth/thread.h
Normal file
13
lib/mammoth/include/mammoth/thread.h
Normal 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_;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue