Fix some false positive ScheduleEvent alerts:
- CEXIETHERNET::SendComplete is always called from the main thread, so drop the _Threadsafe. - Mark the FIFO player thread as the "CPU thread" so it can call ScheduleEvent without complaints. I haven't actually tested this, since I don't know how to use the FIFO player; it might break something.
This commit is contained in:
parent
4bf4778cd7
commit
a9fe0ec0ab
|
@ -362,6 +362,7 @@ static void FifoPlayerThread()
|
||||||
}
|
}
|
||||||
|
|
||||||
s_is_started = true;
|
s_is_started = true;
|
||||||
|
DeclareAsCPUThread();
|
||||||
|
|
||||||
// Enter CPU run loop. When we leave it - we are done.
|
// Enter CPU run loop. When we leave it - we are done.
|
||||||
if (FifoPlayer::GetInstance().Open(_CoreParameter.m_strFilename))
|
if (FifoPlayer::GetInstance().Open(_CoreParameter.m_strFilename))
|
||||||
|
@ -370,6 +371,7 @@ static void FifoPlayerThread()
|
||||||
FifoPlayer::GetInstance().Close();
|
FifoPlayer::GetInstance().Close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
UndeclareAsCPUThread();
|
||||||
s_is_started = false;
|
s_is_started = false;
|
||||||
|
|
||||||
if (!_CoreParameter.bCPUThread)
|
if (!_CoreParameter.bCPUThread)
|
||||||
|
|
|
@ -403,7 +403,7 @@ void CEXIETHERNET::SendComplete()
|
||||||
mBbaMem[BBA_IR] |= INT_T;
|
mBbaMem[BBA_IR] |= INT_T;
|
||||||
|
|
||||||
exi_status.interrupt |= exi_status.TRANSFER;
|
exi_status.interrupt |= exi_status.TRANSFER;
|
||||||
ExpansionInterface::ScheduleUpdateInterrupts_Threadsafe(0);
|
ExpansionInterface::ScheduleUpdateInterrupts(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
mBbaMem[BBA_LTPS] = 0;
|
mBbaMem[BBA_LTPS] = 0;
|
||||||
|
|
Loading…
Reference in New Issue