[Mammoth] Move thread and process to the proc/ folder

This commit is contained in:
Drew Galbraith 2023-11-22 14:10:10 -08:00
parent 99a75a4a76
commit c42fb858ba
14 changed files with 11 additions and 13 deletions

17
lib/mammoth/proc/thread.h Normal file
View 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_;
};