/[pcsx2_0.9.7]/trunk/3rdparty/w32pthreads/pthread_spin_unlock.c
ViewVC logotype

Diff of /trunk/3rdparty/w32pthreads/pthread_spin_unlock.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/3rdparty/w32pthreads/pthread_spin_unlock.c	2010/12/23 11:48:33	279
+++ trunk/3rdparty/w32pthreads/pthread_spin_unlock.c	2010/12/23 12:02:12	280
@@ -55,12 +55,7 @@
     }
 
   switch ((long)
-	  PTW32_INTERLOCKED_COMPARE_EXCHANGE ((PTW32_INTERLOCKED_LPLONG) &
-					      (s->interlock),
-					      (PTW32_INTERLOCKED_LONG)
-					      PTW32_SPIN_UNLOCKED,
-					      (PTW32_INTERLOCKED_LONG)
-					      PTW32_SPIN_LOCKED))
+	  _InterlockedCompareExchange (&(s->interlock), PTW32_SPIN_UNLOCKED, PTW32_SPIN_LOCKED))
     {
     case PTW32_SPIN_LOCKED:
       return 0;

 

  ViewVC Help
Powered by ViewVC 1.1.22