mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 17:19:44 -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:
@ -378,10 +378,8 @@ void GatherPipeBursted()
|
||||
Common::SleepCurrentThread(1);
|
||||
#ifdef _WIN32
|
||||
InterlockedExchangeAdd((LONG*)&fifo.CPReadWriteDistance, GPFifo::GATHER_PIPE_SIZE);
|
||||
#else
|
||||
fifo.sync->Enter();
|
||||
fifo.CPReadWriteDistance += GPFifo::GATHER_PIPE_SIZE;
|
||||
fifo.sync->Leave();
|
||||
#else
|
||||
Common::InterlockedExchangeAdd((int*)&fifo.CPReadWriteDistance, GPFifo::GATHER_PIPE_SIZE);
|
||||
#endif
|
||||
|
||||
// check if we are in sync
|
||||
|
Reference in New Issue
Block a user