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

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

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

--- trunk/3rdparty/w32pthreads/pthread_mutex_unlock.c	2010/12/23 11:48:33	279
+++ trunk/3rdparty/w32pthreads/pthread_mutex_unlock.c	2010/12/23 12:02:12	280
@@ -60,8 +60,7 @@
 	{
 	  LONG idx;
 
-	  idx = (LONG) PTW32_INTERLOCKED_EXCHANGE ((LPLONG) &mx->lock_idx,
-						   (LONG) 0);
+	  idx = _InterlockedExchange (&mx->lock_idx, 0);
 	  if (idx != 0)
 	    {
 	      if (idx < 0)
@@ -92,8 +91,7 @@
 		{
 		  mx->ownerThread.p = NULL;
 
-		  if ((LONG) PTW32_INTERLOCKED_EXCHANGE ((LPLONG) &mx->lock_idx,
-							 (LONG) 0) < 0)
+		  if (_InterlockedExchange (&mx->lock_idx, 0) < 0)
 		    {
 		      /* Someone may be waiting on that mutex */
 		      if (SetEvent (mx->event) == 0)

 

  ViewVC Help
Powered by ViewVC 1.1.22