thread: Configure stack and guard on POSIX hosts. (#1664)

This commit is contained in:
squidbus
2024-12-04 10:21:03 -08:00
committed by GitHub
parent 920acb8d8b
commit c019b54fec
3 changed files with 9 additions and 3 deletions

View File

@@ -5,6 +5,10 @@
#include "common/types.h"
namespace Libraries::Kernel {
struct PthreadAttr;
} // namespace Libraries::Kernel
namespace Core {
class Thread {
@@ -15,7 +19,7 @@ public:
Thread();
~Thread();
int Create(ThreadFunc func, void* arg);
int Create(ThreadFunc func, void* arg, const ::Libraries::Kernel::PthreadAttr* attr);
void Exit();
uintptr_t GetHandle() {