From b71ce91003685ef4effea831b6f9e77693d8d580 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 2 Oct 2005 15:40:54 +0000 Subject: [PATCH] * allocatestack.c (setxid_signal_thread): Need to use atomic_compare_and_exchange_bool_acq. --- nptl/ChangeLog | 5 +++++ nptl/allocatestack.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/nptl/ChangeLog b/nptl/ChangeLog index 555df83..cb47072 100644 --- a/nptl/ChangeLog +++ b/nptl/ChangeLog @@ -1,3 +1,8 @@ +2005-10-02 Jakub Jelinek + + * allocatestack.c (setxid_signal_thread): Need to use + atomic_compare_and_exchange_bool_acq. + 2005-10-01 Ulrich Drepper Jakub Jelinek diff --git a/nptl/allocatestack.c b/nptl/allocatestack.c index bb27c18..f0dddf0 100644 --- a/nptl/allocatestack.c +++ b/nptl/allocatestack.c @@ -834,8 +834,8 @@ setxid_signal_thread (struct xid_command *cmdp, struct pthread *t) if ((ch & EXITING_BITMASK) != 0) return; } - while (atomic_compare_and_exchange_val_acq (&t->cancelhandling, - ch | SETXID_BITMASK, ch)); + while (atomic_compare_and_exchange_bool_acq (&t->cancelhandling, + ch | SETXID_BITMASK, ch)); } int val; -- 2.7.4