Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LemonOSProject/LemonOS
/ SleepCurrentThread
Function
SleepCurrentThread
Kernel/src/arch/x86_64/timer.cpp:103–106 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
101
}
102
103
void SleepCurrentThread(timeval_t& time){
104
long ticks = time.seconds * frequency + MsToTicks(time.milliseconds);
105
SleepCurrentThread(ticks);
106
}
107
108
void Wait(long ms){
109
assert(ms > 0);
Callers
2
WaitTimeout
Method · 0.85
SysNanoSleep
Function · 0.85
Calls
3
MsToTicks
Function · 0.85
SleepBlocker
Class · 0.85
BlockCurrentThread
Function · 0.85
Tested by
no test coverage detected