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

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

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

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

 

  ViewVC Help
Powered by ViewVC 1.1.22