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:
comex 2015-04-27 21:19:28 -04:00
parent 4bf4778cd7
commit a9fe0ec0ab
2 changed files with 3 additions and 1 deletions

View File

@ -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)

View File

@ -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;