summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon
diff options
context:
space:
mode:
authornakeee <nakeee@gmail.com>2008-11-15 20:01:24 +0000
committernakeee <nakeee@gmail.com>2008-11-15 20:01:24 +0000
commit2a06f76f81cfb01bfda59b684d0d93bd84031fe4 (patch)
tree75061196df98aea5d5118269ae6997c5dbfcac53 /Source/Core/VideoCommon
parentf48a74a236676800201132c4ccd4d27d71c1222c (diff)
porting 1180 to linux
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1182 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/VideoCommon')
-rw-r--r--Source/Core/VideoCommon/Src/Fifo.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/Src/Fifo.cpp b/Source/Core/VideoCommon/Src/Fifo.cpp
index c1b1009d48..e9badceb00 100644
--- a/Source/Core/VideoCommon/Src/Fifo.cpp
+++ b/Source/Core/VideoCommon/Src/Fifo.cpp
@@ -102,7 +102,11 @@ THREAD_RETURN GPWatchdogThread(void *pArg)
// TODO (mb2): FIX this !!!
//if (token == _fifo.Fake_GPWDToken)
{
+#ifdef _WIN32
InterlockedExchange((LONG*)&_fifo.Fake_GPWDInterrupt, 1);
+#else
+ Common::InterlockedExchange((int*)&_fifo.Fake_GPWDInterrupt, 1);
+#endif
//__Log(LogTypes::VIDEO,"!!! Watchdog hit",_fifo.CPReadWriteDistance);
}
token = _fifo.Fake_GPWDToken;