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

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

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

--- trunk/3rdparty/w32pthreads/pthread_spin_lock.c	2010/12/23 11:48:33	279
+++ trunk/3rdparty/w32pthreads/pthread_spin_lock.c	2010/12/23 12:02:12	280
@@ -59,13 +59,8 @@
 
   s = *lock;
 
-  while ((PTW32_INTERLOCKED_LONG) PTW32_SPIN_LOCKED ==
-	 PTW32_INTERLOCKED_COMPARE_EXCHANGE ((PTW32_INTERLOCKED_LPLONG) &
-					     (s->interlock),
-					     (PTW32_INTERLOCKED_LONG)
-					     PTW32_SPIN_LOCKED,
-					     (PTW32_INTERLOCKED_LONG)
-					     PTW32_SPIN_UNLOCKED))
+  while (PTW32_SPIN_LOCKED ==
+	 _InterlockedCompareExchange(&(s->interlock), PTW32_SPIN_LOCKED, PTW32_SPIN_UNLOCKED))
     {
     }
 

 

  ViewVC Help
Powered by ViewVC 1.1.22