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

Function SysExitThread

Kernel/src/arch/x86_64/syscalls.cpp:1924–1933  ·  view source on GitHub ↗

//////////////////////// \brief SysExitThread(retval) Exit a thread \param retval - (void*) Return value pointer \return Undefined, always succeeds ////////////////////////

Source from the content-addressed store, hash-verified

1922/// \return Undefined, always succeeds
1923/////////////////////////////
1924[[noreturn]]
1925long SysExitThread(regs64_t* r){
1926 Log::Warning("SysExitThread is unimplemented! Hanging!");
1927
1928 releaseLock(&GetCPULocal()->currentThread->lock);
1929
1930 GetCPULocal()->currentThread->state = ThreadStateBlocked;
1931
1932 for(;;) Scheduler::Yield();
1933}
1934
1935/////////////////////////////
1936/// \brief SysFutexWake(futex) Wake a thread waiting on a futex

Callers

nothing calls this directly

Calls 3

WarningFunction · 0.85
GetCPULocalFunction · 0.85
YieldFunction · 0.70

Tested by

no test coverage detected