mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 20:28:56 +00:00
Added InterlockedExchange to Linux side
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1018 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
a5ca940d64
commit
0ab16c6af0
4 changed files with 15 additions and 7 deletions
|
@ -135,7 +135,7 @@ void Fifo_EnterLoop(const SVideoInitialize &video_initialize)
|
|||
#ifdef _WIN32
|
||||
InterlockedExchange((LONG*)&_fifo.bFF_Breakpoint, 1);
|
||||
#else
|
||||
_fifo.bFF_Breakpoint = true;
|
||||
Common::InterlockedExchange((int*)&_fifo.bFF_Breakpoint, 1);
|
||||
#endif
|
||||
video_initialize.pUpdateInterrupts();
|
||||
break;
|
||||
|
@ -159,7 +159,7 @@ void Fifo_EnterLoop(const SVideoInitialize &video_initialize)
|
|||
InterlockedExchangeAdd((LONG*)&_fifo.CPReadWriteDistance, -32);
|
||||
//LeaveCriticalSection(&_fifo.sync);
|
||||
#else
|
||||
_fifo.CPReadPointer = readPtr;
|
||||
Common::InterlockedExchange((int*)&_fifo.CPReadPointer, readPtr);
|
||||
Common::InterlockedExchangeAdd((int*)&_fifo.CPReadWriteDistance, -32);
|
||||
_fifo.sync->Leave();
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue