diff options
author | Ulrich Drepper <drepper@redhat.com> | 2003-03-21 08:03:25 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2003-03-21 08:03:25 +0000 |
commit | 5a3ab2fc180056cb14eaeae0f571421be81e371b (patch) | |
tree | af48122e19c238a39db145412a11b1b551d472e6 /nptl/cleanup_defer.c | |
parent | 18627f615b80b51778a65cf588f2741ad5f9b0a7 (diff) | |
download | glibc-5a3ab2fc180056cb14eaeae0f571421be81e371b.tar.gz |
Update.
2003-03-21 Ulrich Drepper <drepper@redhat.com>
* cancellation.c: Adjust for new form of compare&exchange macros.
* cleanup_defer.c: Likewise.
* init.c: Likewise.
* libc-cancellation.c: Likewise.
* old_pthread_cond_broadcast.c: Likewise.
* old_pthread_cond_signal.c: Likewise.
* old_pthread_cond_timedwait.c: Likewise.
* old_pthread_cond_wait.c: Likewise.
* pthread_cancel.c: Likewise.
* pthread_create.c: Likewise.
* pthread_detach.c: Likewise.
* pthread_join.c: Likewise.
* pthread_key_delete.c: Likewise.
* pthread_setcancelstate.c: Likewise.
* pthread_setcanceltype.c: Likewise.
* pthread_timedjoin.c: Likewise.
* pthread_tryjoin.c: Likewise.
* sysdeps/pthread/createthread.c: Likewise.
Diffstat (limited to 'nptl/cleanup_defer.c')
-rw-r--r-- | nptl/cleanup_defer.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/nptl/cleanup_defer.c b/nptl/cleanup_defer.c index 084216e44b..b72553bdc0 100644 --- a/nptl/cleanup_defer.c +++ b/nptl/cleanup_defer.c @@ -41,10 +41,10 @@ _pthread_cleanup_push_defer (buffer, routine, arg) /* Disable asynchronous cancellation for now. */ if (__builtin_expect (cancelhandling & CANCELTYPE_BITMASK, 0)) { - while (atomic_compare_and_exchange_acq (&self->cancelhandling, - cancelhandling - & ~CANCELTYPE_BITMASK, - cancelhandling) != 0) + while (atomic_compare_and_exchange_bool_acq (&self->cancelhandling, + cancelhandling + & ~CANCELTYPE_BITMASK, + cancelhandling)) cancelhandling = self->cancelhandling; } @@ -70,10 +70,10 @@ _pthread_cleanup_pop_restore (buffer, execute) && ((cancelhandling = THREAD_GETMEM (self, cancelhandling)) & CANCELTYPE_BITMASK) == 0) { - while (atomic_compare_and_exchange_acq (&self->cancelhandling, - cancelhandling - | CANCELTYPE_BITMASK, - cancelhandling) != 0) + while (atomic_compare_and_exchange_bool_acq (&self->cancelhandling, + cancelhandling + | CANCELTYPE_BITMASK, + cancelhandling)) cancelhandling = self->cancelhandling; CANCELLATION_P (self); |