mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
Update.
* sysdeps/powerpc/bits/atomic.h (atomic_increment): Define. (atomic_decrement): Define. * sysdeps/powerpc/bits/atomic.h: Implement atomic_increment_val and atomic_decrement_val. * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise. * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise. * csu/tst-atomic.c (do_test): Add tests of atomic_increment_val and atomic_decrement_val.
This commit is contained in:
@ -445,8 +445,7 @@ allocate_stack (const struct pthread_attr *attr, struct pthread **pdp,
|
||||
|
||||
#if COLORING_INCREMENT != 0
|
||||
/* Atomically increment NCREATED. */
|
||||
unsigned int ncreated = (atomic_exchange_and_add (&nptl_ncreated, 1)
|
||||
+ 1);
|
||||
unsigned int ncreated = atomic_increment_val (&nptl_ncreated);
|
||||
|
||||
/* We chose the offset for coloring by incrementing it for
|
||||
every new thread by a fixed amount. The offset used
|
||||
|
Reference in New Issue
Block a user