[Mammoth] Move thread and process to the proc/ folder
This commit is contained in:
parent
99a75a4a76
commit
c42fb858ba
14 changed files with 11 additions and 13 deletions
17
lib/mammoth/proc/thread.h
Normal file
17
lib/mammoth/proc/thread.h
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#pragma once
|
||||
|
||||
#include <glacier/status/error.h>
|
||||
#include <stdint.h>
|
||||
|
||||
class Thread {
|
||||
public:
|
||||
typedef void (*Entry)(void*);
|
||||
|
||||
Thread() : thread_cap_(0) {}
|
||||
Thread(Entry e, const void* arg1);
|
||||
|
||||
[[nodiscard]] glcr::ErrorCode Join();
|
||||
|
||||
private:
|
||||
uint64_t thread_cap_;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue