MCPcopy 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

WaitTimeoutMethod · 0.85
SysNanoSleepFunction · 0.85

Calls 3

MsToTicksFunction · 0.85
SleepBlockerClass · 0.85
BlockCurrentThreadFunction · 0.85

Tested by

no test coverage detected