MCPcopy Create free account
hub / github.com/Simple-XX/SimpleKernel / sys_yield

Function sys_yield

src/syscall.cpp:107–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105}
106
107[[nodiscard]] auto sys_yield() -> int {
108 TaskManagerSingleton::instance().Schedule();
109 return 0;
110}
111
112[[nodiscard]] auto sys_sleep(uint64_t ms) -> int {
113 TaskManagerSingleton::instance().Sleep(ms);

Callers 6

syscall_dispatcherFunction · 0.85
yield_basic_workFunction · 0.85
yield_task_aFunction · 0.85
yield_task_bFunction · 0.85
imbalance_workerFunction · 0.85
affinity_pinned_workerFunction · 0.85

Calls 1

ScheduleMethod · 0.80

Tested by 5

yield_basic_workFunction · 0.68
yield_task_aFunction · 0.68
yield_task_bFunction · 0.68
imbalance_workerFunction · 0.68
affinity_pinned_workerFunction · 0.68