X-Git-Url: http://git.csclub.uwaterloo.ca/?p=kopensolaris-gnu%2Fglibc.git;a=blobdiff_plain;f=nptl%2Fpthread_timedjoin.c;h=1cc07213c8b8413ad4caba0e6bcb93477ca7b69c;hp=c83c0ef9537843e0877de3c13d52ad317f8e18d1;hb=7d7676c404acae5793babfaa88c5ce7bf5972f9e;hpb=717ad79c28b715797d5d14440bba5e2fe0040d2c;ds=sidebyside diff --git a/nptl/pthread_timedjoin.c b/nptl/pthread_timedjoin.c index c83c0ef953..1cc07213c8 100644 --- a/nptl/pthread_timedjoin.c +++ b/nptl/pthread_timedjoin.c @@ -63,8 +63,8 @@ pthread_timedjoin_np (threadid, thread_return, abstime) /* Wait for the thread to finish. If it is already locked something is wrong. There can only be one waiter. */ - if (__builtin_expect (atomic_compare_and_exchange_acq (&pd->joinid, self, - NULL) != 0, 0)) + if (__builtin_expect (atomic_compare_and_exchange_bool_acq (&pd->joinid, + self, NULL), 0)) /* There is already somebody waiting for the thread. */ return EINVAL;