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

Method killAllThreads

source/kernel/kprocess.cpp:1632–1639  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1630}
1631
1632void KProcess::killAllThreads(KThread* exceptThisThread) {
1633 iterateThreadIds([this, exceptThisThread](U32 id) {
1634 if (!exceptThisThread || exceptThisThread->id != id) {
1635 terminateOtherThread(shared_from_this(), id);
1636 }
1637 return true;
1638 });
1639}
1640
1641U32 KProcess::exitgroup(KThread* thread, U32 code) {
1642 KProcessPtr parent = KSystem::getProcess(this->parentId);

Callers 4

signalMethod · 0.95
destroyMethod · 0.80
forceShutdownMethod · 0.80
handlSdlEventMethod · 0.80

Calls 1

terminateOtherThreadFunction · 0.70

Tested by

no test coverage detected