mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 06:39:46 -06:00
Get rid of locks added InterlockedExchangeAdd function in thread.cpp
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@748 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -217,12 +217,13 @@ void Fifo_EnterLoop(const SVideoInitialize &video_initialize)
|
||||
#endif
|
||||
_fifo.CPReadPointer += 32;
|
||||
Video_SendFifoData(uData);
|
||||
|
||||
#ifdef _WIN32
|
||||
InterlockedExchangeAdd((LONG*)&_fifo.CPReadWriteDistance, -32);
|
||||
LeaveCriticalSection(&_fifo.sync);
|
||||
#else
|
||||
_fifo.CPReadWriteDistance -= 32;
|
||||
_fifo.sync->Leave();
|
||||
Common::InterlockedExchangeAdd((int*)&_fifo.CPReadWriteDistance, -32);
|
||||
_fifo.sync->Leave();
|
||||
#endif
|
||||
// increase the ReadPtr
|
||||
if (_fifo.CPReadPointer >= _fifo.CPEnd)
|
||||
|
Reference in New Issue
Block a user