MCPcopy Create free account
hub / github.com/LemonOSProject/LemonOS / Remove

Method Remove

Kernel/src/arch/x86_64/timer.cpp:58–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56 }
57
58 void Remove(thread_t* thread) final {
59 for(auto it = sleeping.begin(); it != sleeping.end(); it++){
60 SleepCounter& cnt = *it;
61 if(cnt.thread == thread){
62 auto next = it;
63 next++;
64
65 next->ticksLeft += cnt.ticksLeft;
66
67 sleeping.remove(it);
68 }
69 }
70 }
71 };
72
73 uint64_t GetSystemUptime(){

Callers 2

SysFutexWakeFunction · 0.45
Slave_ReadMethod · 0.45

Calls 3

beginMethod · 0.45
endMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected