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

Method createThread

source/kernel/kprocess.cpp:202–208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200}
201
202KThread* KProcess::createThread() {
203 KThread* thread = new KThread(KSystem::getNextThreadId(), shared_from_this());
204
205 BOXEDWINE_CRITICAL_SECTION_WITH_MUTEX(threadsMutex);
206 this->threads.set(thread->id, thread);
207 return thread;
208}
209
210void KProcess::removeThread(KThread* thread) {
211 {

Callers 4

startProcessMethod · 0.95
cloneMethod · 0.95
setupFunction · 0.80
doLockedIncThreadFunction · 0.80

Calls 1

setMethod · 0.45

Tested by 2

setupFunction · 0.64
doLockedIncThreadFunction · 0.64