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

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

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

--- trunk/3rdparty/w32pthreads/pthread_mutex_trylock.c	2010/12/23 11:48:33	279
+++ trunk/3rdparty/w32pthreads/pthread_mutex_trylock.c	2010/12/23 12:02:12	280
@@ -63,10 +63,7 @@
 
   mx = *mutex;
 
-  if (0 == (LONG) PTW32_INTERLOCKED_COMPARE_EXCHANGE (
-		     (PTW32_INTERLOCKED_LPLONG) &mx->lock_idx,
-		     (PTW32_INTERLOCKED_LONG) 1,
-		     (PTW32_INTERLOCKED_LONG) 0))
+  if (0 == (LONG) _InterlockedCompareExchange(&mx->lock_idx, 1, 0))
     {
       if (mx->kind != PTHREAD_MUTEX_NORMAL)
 	{

 

  ViewVC Help
Powered by ViewVC 1.1.22