Move THREAD_ATOMIC_* replacements to the top.
authordrepper <drepper>
Tue, 15 Apr 2003 17:58:27 +0000 (17:58 +0000)
committerdrepper <drepper>
Tue, 15 Apr 2003 17:58:27 +0000 (17:58 +0000)
nptl/pthreadP.h

index d51f837..ad62be8 100644 (file)
 #include <atomic.h>
 
 
+/* Atomic operations on TLS memory.  */
+#ifndef THREAD_ATOMIC_CMPXCHG_VAL
+# define THREAD_ATOMIC_CMPXCHG_VAL(descr, member, new, old) \
+  atomic_compare_and_exchange_val_acq (&(descr)->member, new, old)
+#endif
+
+#ifndef THREAD_ATOMIC_BIT_SET
+# define THREAD_ATOMIC_BIT_SET(descr, member, bit) \
+  atomic_bit_set (&(descr)->member, bit)
+#endif
+
+
 /* Internal variables.  */
 
 
@@ -154,18 +166,6 @@ __do_cancel (void)
 #define SIGTIMER       (__SIGRTMIN + 1)
 
 
-/* Atomic operations on TLS memory.  */
-#ifndef THREAD_ATOMIC_CMPXCHG_VAL
-# define THREAD_ATOMIC_CMPXCHG_VAL(descr, member, new, old) \
-  atomic_compare_and_exchange_val_acq (&(descr)->member, new, old)
-#endif
-
-#ifndef THREAD_ATOMIC_BIT_SET
-# define THREAD_ATOMIC_BIT_SET(descr, member, bit) \
-  atomic_bit_set (&(descr)->member, bit)
-#endif
-
-
 /* Internal prototypes.  */
 
 /* Thread list handling.  */