For now this can only sleep in increments of the scheduler quantum (currently 50ms). It also uses a somewhat ineffecient way of tracking the sleeping threads - it will scale linearly with the number of sleeping threads.
11 lines
326 B
C
11 lines
326 B
C
#pragma once
|
|
|
|
#include <glacier/status/error.h>
|
|
|
|
#include "include/zcall.h"
|
|
|
|
glcr::ErrorCode ThreadCreate(ZThreadCreateReq* req);
|
|
glcr::ErrorCode ThreadStart(ZThreadStartReq* req);
|
|
glcr::ErrorCode ThreadExit(ZThreadExitReq*);
|
|
glcr::ErrorCode ThreadWait(ZThreadWaitReq* req);
|
|
glcr::ErrorCode ThreadSleep(ZThreadSleepReq* req);
|