diff options
Diffstat (limited to 'nptl/old_pthread_cond_signal.c')
-rw-r--r-- | nptl/old_pthread_cond_signal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nptl/old_pthread_cond_signal.c b/nptl/old_pthread_cond_signal.c index ae54209e4a..65beb0b9db 100644 --- a/nptl/old_pthread_cond_signal.c +++ b/nptl/old_pthread_cond_signal.c @@ -46,7 +46,7 @@ __pthread_cond_signal_2_0 (cond) (void) pthread_cond_init (newcond, NULL); #endif - if (atomic_compare_and_exchange_acq (&cond->cond, newcond, NULL) != 0) + if (atomic_compare_and_exchange_bool_acq (&cond->cond, newcond, NULL)) /* Somebody else just initialized the condvar. */ free (newcond); } |