Remove JASAudioThread race condition fixing code

I'm not planning on using JASAudioThread anymore
This commit is contained in:
PJB3005
2026-03-12 11:47:04 +01:00
parent 4382f86c4f
commit 4f09fc65ac
3 changed files with 1 additions and 35 deletions
+1 -17
View File
@@ -21,17 +21,8 @@ JASAudioThread::JASAudioThread(int stackSize, int msgCount, u32 threadPriority)
OSInitThreadQueue(&sThreadQueue);
}
#if TARGET_PC
bool JASAudioThread::sThreadInitComplete = false;
OSMutex JASAudioThread::sThreadInitCompleteMutex;
OSCond JASAudioThread::sThreadInitCompleteCond;
#endif
void JASAudioThread::create(s32 threadPriority) {
#if TARGET_PC
OSInitMutex(&sThreadInitCompleteMutex);
OSInitCond(&sThreadInitCompleteCond);
#endif
OSPanic(__FILE__, __LINE__, "JASAudioThread does not work on PC!");
#if PLATFORM_GCN
const int size = 0x1400;
@@ -79,13 +70,6 @@ void* JASAudioThread::run() {
JASPoolAllocObject_MultiThreaded<JASChannel>::newMemPool(0x48);
JASDriver::startDMA();
#if TARGET_PC
OSLockMutex(&sThreadInitCompleteMutex);
sThreadInitComplete = true;
OSUnlockMutex(&sThreadInitCompleteMutex);
OSSignalCond(&sThreadInitCompleteCond);
#endif
OSMessage msg;
while (true) {
msg = waitMessageBlock();