MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / ~KThread

Method ~KThread

source/kernel/kthread.cpp:32–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30thread_local KThread* KThread::runningThread;
31
32KThread::~KThread() {
33 for (auto& callback : callbacksOnExit) {
34 callback(id);
35 }
36 this->internalCleanup();
37 CPU* cpu = this->cpu;
38 this->cpu = nullptr;
39 delete cpu;
40}
41
42void KThread::cleanup() {
43 memory->threadCleanup(id);

Callers

nothing calls this directly

Calls 2

internalCleanupMethod · 0.95
callbackFunction · 0.85

Tested by

no test coverage detected