[Glacier] Convert ErrorCode into an Enum.

This commit is contained in:
Drew Galbraith 2023-11-02 21:55:12 -07:00
parent bcd9cf09bc
commit e66706d381
14 changed files with 77 additions and 66 deletions

View file

@ -22,4 +22,6 @@ Thread::Thread(Entry e, const void* arg1) {
reinterpret_cast<uint64_t>(arg1)));
}
glcr::ErrorCode Thread::Join() { return ZThreadWait(thread_cap_); }
glcr::ErrorCode Thread::Join() {
return static_cast<glcr::ErrorCode>(ZThreadWait(thread_cap_));
}