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

Function sys_sleep

src/syscall.cpp:112–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112[[nodiscard]] auto sys_sleep(uint64_t ms) -> int {
113 TaskManagerSingleton::instance().Sleep(ms);
114 return 0;
115}
116
117[[nodiscard]] auto sys_clone(uint64_t flags, void* stack, int* parent_tid,
118 int* child_tid, void* tls) -> int {

Callers 15

syscall_dispatcherFunction · 0.85
test_tick_incrementsFunction · 0.85
test_sleep_timingFunction · 0.85
tick_testFunction · 0.85
thread_incrementFunction · 0.85
test_thread_group_basicFunction · 0.85
concurrent_exit_workerFunction · 0.85
thread_group_testFunction · 0.85
trylock_holderFunction · 0.85
test_mutex_trylockFunction · 0.85
contention_workerFunction · 0.85

Calls 1

SleepMethod · 0.80

Tested by 15

test_tick_incrementsFunction · 0.68
test_sleep_timingFunction · 0.68
tick_testFunction · 0.68
thread_incrementFunction · 0.68
test_thread_group_basicFunction · 0.68
concurrent_exit_workerFunction · 0.68
thread_group_testFunction · 0.68
trylock_holderFunction · 0.68
test_mutex_trylockFunction · 0.68
contention_workerFunction · 0.68
test_mutex_contentionFunction · 0.68