MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / exit

Method exit

source/kernel/kprocess.cpp:618–628  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

616}
617
618U32 KProcess::exit(KThread* thread, U32 code) {
619 this->exitCode = code;
620 if (this->getThreadCount()==1)
621 return this->exitgroup(thread, code);
622
623 thread->cpu->yield = true;
624 thread->cleanup(); // will unschedule the thread
625 terminateCurrentThread(thread);
626
627 return 0;
628}
629
630KFileDescriptorPtr KProcess::getFileDescriptor(FD handle) {
631 BOXEDWINE_CRITICAL_SECTION_WITH_MUTEX(fdsMutex);

Callers 6

getAlignmentMethod · 0.45
runTestMethod · 0.45
mainMethod · 0.45
HandleQuitMessageFunction · 0.45
writeEnumsMethod · 0.45
syscall_exitFunction · 0.45

Calls 4

getThreadCountMethod · 0.95
exitgroupMethod · 0.95
terminateCurrentThreadFunction · 0.70
cleanupMethod · 0.45

Tested by

no test coverage detected