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

Function terminateOtherThread

source/kernel/kscheduler.cpp:113–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113void terminateOtherThread(const KProcessPtr& process, U32 threadId) {
114 KThread* thread = process->getThreadById(threadId);
115 if (thread) {
116 unscheduleThread(thread);
117 delete thread;
118 }
119}
120
121void terminateCurrentThread(KThread* thread) {
122 thread->terminating = true;

Callers 2

onExecMethod · 0.70
killAllThreadsMethod · 0.70

Calls 2

unscheduleThreadFunction · 0.70
getThreadByIdMethod · 0.45

Tested by

no test coverage detected