Diff of /pthread_spin_lock.c [5af9e8] .. [1e0bb8]  Maximize  Restore

Switch to side-by-side view

--- a/pthread_spin_lock.c
+++ b/pthread_spin_lock.c
@@ -60,13 +60,10 @@
 
   s = *lock;
 
-  while ((PTW32_INTERLOCKED_VALUE) PTW32_SPIN_LOCKED ==
-	 PTW32_INTERLOCKED_COMPARE_EXCHANGE ((PTW32_INTERLOCKED_PTR) &
-					     (s->interlock),
-					     (PTW32_INTERLOCKED_VALUE)
-					     PTW32_SPIN_LOCKED,
-					     (PTW32_INTERLOCKED_VALUE)
-					     PTW32_SPIN_UNLOCKED))
+  while ((PTW32_INTERLOCKED_LONG) PTW32_SPIN_LOCKED ==
+	 PTW32_INTERLOCKED_COMPARE_EXCHANGE_LONG ((PTW32_INTERLOCKED_PTR) &s->interlock,
+					          (PTW32_INTERLOCKED_LONG) PTW32_SPIN_LOCKED,
+					          (PTW32_INTERLOCKED_LONG) PTW32_SPIN_UNLOCKED))
     {
     }
 

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks