Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chyyuu/os_kernel_lab
/ sleep
Function
sleep
user/src/task.rs:63–65 ·
view source on GitHub ↗
(sleep_ms: usize)
Source
from the content-addressed store, hash-verified
61
}
62
63
pub fn sleep(sleep_ms: usize) {
64
sys_sleep(sleep_ms);
65
}
66
67
pub fn thread_create(entry: usize, arg: usize) -> isize {
68
sys_thread_create(entry, arg)
Callers
12
main
Function · 0.85
sleepy
Function · 0.85
main
Function · 0.85
philosopher_dining_problem
Function · 0.85
eisenberg_enter_critical
Function · 0.85
thread_fn
Function · 0.85
peterson_enter_critical
Function · 0.85
thread_fn
Function · 0.85
first
Function · 0.85
first
Function · 0.85
main
Function · 0.85
main
Function · 0.85
Calls
1
sys_sleep
Function · 0.70
Tested by
2
main
Function · 0.68
first
Function · 0.68