diff options
| author | magumagu9 <magumagu9@gmail.com> | 2008-11-22 20:11:26 +0000 |
|---|---|---|
| committer | magumagu9 <magumagu9@gmail.com> | 2008-11-22 20:11:26 +0000 |
| commit | eab369321c2572e412718d2a8da5b73dce366325 (patch) | |
| tree | f9590b713cb7a025dc777019c2a66816c9f113ea /Source/Core/VideoCommon/Src/Fifo.cpp | |
| parent | 159e3f5b49ba2dc7eb0efb4a25a934d64ec71389 (diff) | |
Linux build fixes.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1248 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/VideoCommon/Src/Fifo.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/Src/Fifo.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/Src/Fifo.cpp b/Source/Core/VideoCommon/Src/Fifo.cpp index 40b3b4ce80..3f454088fe 100644 --- a/Source/Core/VideoCommon/Src/Fifo.cpp +++ b/Source/Core/VideoCommon/Src/Fifo.cpp @@ -116,7 +116,11 @@ void Fifo_EnterLoop(const SVideoInitialize &video_initialize) // check if we are able to run this buffer
if ((_fifo.bFF_GPReadEnable) && _fifo.CPReadWriteDistance && !(_fifo.bFF_BPEnable && _fifo.bFF_Breakpoint))
{
+#ifdef _WIN32
InterlockedExchange((LONG*)&_fifo.CPReadIdle, 0);
+#else
+ Common::InterlockedExchange((int*)&_fifo.CPReadIdle, 0);
+#endif
#if defined(THREAD_VIDEO_WAKEUP_ONIDLE) && defined(_WIN32)
while(_fifo.CPReadWriteDistance > 0)
#else
@@ -169,7 +173,11 @@ void Fifo_EnterLoop(const SVideoInitialize &video_initialize) #endif
}
//video_initialize.pLog("IDLE",FALSE);
+#ifdef _WIN32
InterlockedExchange((LONG*)&_fifo.CPReadIdle, 1);
+#else
+ Common::InterlockedExchange((int*)&_fifo.CPReadIdle, 1);
+#endif
}
}
#if defined(THREAD_VIDEO_WAKEUP_ONIDLE) && defined(_WIN32)
|
