MCPcopy Create free account
hub / github.com/doldecomp/mkdd / setCommon_mesgQueue

Method setCommon_mesgQueue

libs/JSystem/JKernel/JKRThread.cpp:76–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76void JKRThread::setCommon_mesgQueue(JKRHeap *heap, int msgCount)
77{
78#line 128
79 mMessageCount = msgCount;
80 mMesgBuffer = (OSMessage *)JKRHeap::alloc(mMessageCount << 2, 0, heap);
81 JUT_ASSERT(mMesgBuffer);
82
83 OSInitMessageQueue(&mMessageQueue, mMesgBuffer, mMessageCount);
84 JKRThread::sThreadList.append(&mThreadListLink);
85 mCurrentHeap = nullptr;
86 mCurrentHeapError = nullptr;
87}
88
89BOOL JKRThread::setCommon_heapSpecified(JKRHeap *heap, u32 stackSize, int threadPriority)
90{

Callers

nothing calls this directly

Calls 3

allocFunction · 0.85
OSInitMessageQueueFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected