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

Function OSGetDefaultThread

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

Source from the content-addressed store, hash-verified

1450 SysAllocator<uint8, PPC_CORE_COUNT * 1024 * 1024> s_stack;
1451
1452 OSThread_t* OSGetDefaultThread(sint32 coreIndex)
1453 {
1454 if (coreIndex < 0 || coreIndex >= PPC_CORE_COUNT)
1455 return nullptr;
1456 return s_defaultThreads.GetPtr() + coreIndex;
1457 }
1458
1459 void* OSGetDefaultThreadStack(sint32 coreIndex, uint32& size)
1460 {

Callers 5

cemu_initForGameFunction · 0.85
selectThreadFunction · 0.85
selectAndResumeThreadFunction · 0.85
ThreadFuncMethod · 0.85
__OSInitDefaultThreadsFunction · 0.85

Calls 1

GetPtrMethod · 0.45

Tested by

no test coverage detected