mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-06-04 02:16:03 -04:00
Merge branch 'main' into 26-02-27-allocator-isolation
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
#include "JSystem/JSystem.h" // IWYU pragma: keep
|
||||
|
||||
#include "JSystem/JAudio2/JASDvdThread.h"
|
||||
#include "JSystem/JAudio2/JASTaskThread.h"
|
||||
#include "JSystem/JKernel/JKRSolidHeap.h"
|
||||
|
||||
JASTaskThread* JASDvd::sThread;
|
||||
|
||||
JASTaskThread* JASDvd::getThreadPointer() {
|
||||
return JASDvd::sThread;
|
||||
}
|
||||
|
||||
bool JASDvd::createThread(s32 priority, int msgCount, u32 stackSize) {
|
||||
if (sThread != NULL) {
|
||||
JUT_WARN_DEVICE(32, 2, "%s", "JASDvd::createThread が2回呼び出されました");
|
||||
return false;
|
||||
}
|
||||
|
||||
sThread = JKR_NEW_ARGS (JASDram, 0) JASTaskThread(priority, msgCount, stackSize);
|
||||
JUT_ASSERT(36, sThread);
|
||||
|
||||
JKRHeap* pCurrentHeap = JKRGetSystemHeap();
|
||||
JUT_ASSERT(38, pCurrentHeap);
|
||||
|
||||
sThread->setCurrentHeap(pCurrentHeap);
|
||||
sThread->resume();
|
||||
return true;
|
||||
}
|
||||
Reference in New Issue
Block a user