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

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

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

--- trunk/3rdparty/w32pthreads/pthread_barrier_wait.c	2010/12/23 11:48:33	279
+++ trunk/3rdparty/w32pthreads/pthread_barrier_wait.c	2010/12/23 12:02:12	280
@@ -84,13 +84,8 @@
    */
   if (0 == result)
     {
-      result = ((PTW32_INTERLOCKED_LONG) step ==
-		PTW32_INTERLOCKED_COMPARE_EXCHANGE ((PTW32_INTERLOCKED_LPLONG)
-						    & (b->iStep),
-						    (PTW32_INTERLOCKED_LONG)
-						    (1L - step),
-						    (PTW32_INTERLOCKED_LONG)
-						    step) ?
+      result = ( step ==
+		_InterlockedCompareExchange ( &(b->iStep), (1L - step), step) ?
 		PTHREAD_BARRIER_SERIAL_THREAD : 0);
     }
 

 

  ViewVC Help
Powered by ViewVC 1.1.22