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

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

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

--- trunk/3rdparty/w32pthreads/pthread_spin_destroy.c	2010/12/23 11:48:33	279
+++ trunk/3rdparty/w32pthreads/pthread_spin_destroy.c	2010/12/23 12:02:12	280
@@ -54,13 +54,8 @@
 	{
 	  result = pthread_mutex_destroy (&(s->u.mutex));
 	}
-      else if ((PTW32_INTERLOCKED_LONG) PTW32_SPIN_UNLOCKED !=
-	       PTW32_INTERLOCKED_COMPARE_EXCHANGE ((PTW32_INTERLOCKED_LPLONG)
-						   & (s->interlock),
-						   (PTW32_INTERLOCKED_LONG)
-						   PTW32_OBJECT_INVALID,
-						   (PTW32_INTERLOCKED_LONG)
-						   PTW32_SPIN_UNLOCKED))
+      else if (PTW32_SPIN_UNLOCKED !=
+		_InterlockedCompareExchange(&(s->interlock), PTW32_OBJECT_INVALID, PTW32_SPIN_UNLOCKED))
 	{
 	  result = EINVAL;
 	}

 

  ViewVC Help
Powered by ViewVC 1.1.22