acadia/lib/mammoth/proc/thread.h

18 lines
273 B
C
Raw Normal View History

#pragma once
2023-06-22 02:17:50 -07:00
#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);
2023-06-22 02:17:50 -07:00
[[nodiscard]] glcr::ErrorCode Join();
private:
uint64_t thread_cap_;
};