MCPcopy Create free account
hub / github.com/cemu-project/Cemu / __OSCreateHostThread

Function __OSCreateHostThread

src/Cafe/OS/libs/coreinit/coreinit_Thread.cpp:75–82  ·  view source on GitHub ↗

create host thread (fiber) that will be used to run the PPC instance note that host threads are fibers and not actual threads

Source from the content-addressed store, hash-verified

73 // create host thread (fiber) that will be used to run the PPC instance
74 // note that host threads are fibers and not actual threads
75 void __OSCreateHostThread(OSThread_t* thread)
76 {
77 cemu_assert_debug(__OSHasSchedulerLock());
78 cemu_assert_debug(s_threadToFiber.find(thread) == s_threadToFiber.end());
79
80 OSHostThread* hostThread = new OSHostThread(thread);
81 s_threadToFiber.emplace(thread, hostThread);
82 }
83
84 // delete host thread
85 void __OSDeleteHostThread(OSThread_t* thread)

Callers 1

__OSActivateThreadFunction · 0.85

Calls 5

cemu_assert_debugFunction · 0.85
__OSHasSchedulerLockFunction · 0.85
findMethod · 0.45
endMethod · 0.45
emplaceMethod · 0.45

Tested by

no test coverage detected