diff options
author | Ulrich Drepper <drepper@redhat.com> | 2003-04-15 18:29:40 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2003-04-15 18:29:40 +0000 |
commit | a1b5424f501c313eda811b1db124970c1777bd77 (patch) | |
tree | 4b37cc86b25b00ff6e5c1c8515a23f624ec0b167 /nptl | |
parent | 8e854030c0e31434f14339145334856cfd487984 (diff) | |
download | glibc-a1b5424f501c313eda811b1db124970c1777bd77.zip glibc-a1b5424f501c313eda811b1db124970c1777bd77.tar.gz glibc-a1b5424f501c313eda811b1db124970c1777bd77.tar.bz2 |
Update.
2003-04-15 Ulrich Drepper <drepper@redhat.com>
* include/atomic.h: Pretty printing.
Diffstat (limited to 'nptl')
-rw-r--r-- | nptl/pthreadP.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/nptl/pthreadP.h b/nptl/pthreadP.h index d51f837..ad62be8 100644 --- a/nptl/pthreadP.h +++ b/nptl/pthreadP.h @@ -32,6 +32,18 @@ #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. */ |