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

Function Yield

Kernel/src/arch/x86_64/scheduler.cpp:242–249  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

240 }
241
242 void Yield(){
243 CPU* cpu = GetCPULocal();
244
245 if(cpu->currentThread) {
246 cpu->currentThread->timeSlice = 0;
247 }
248 asm("int $0xFD"); // Send schedule IPI to self
249 }
250
251 process_t* CreateProcess(void* entry) {
252 process_t* proc = InitializeProcessStructure();

Callers 14

BlockCurrentThreadFunction · 0.70
SysYieldFunction · 0.70
SysPollFunction · 0.70
SysExitThreadFunction · 0.70
SysSelectFunction · 0.70
KernelProcessFunction · 0.50
WaitMethod · 0.50
ConnectMethod · 0.50
SubmitWaitMethod · 0.50
ReceiveFromMethod · 0.50
InterfaceThreadFunction · 0.50
ConnectToMethod · 0.50

Calls 1

GetCPULocalFunction · 0.85

Tested by

no test coverage detected