mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8234737: Harmonize parameter order in Atomic - add
Reviewed-by: rehn, dholmes
This commit is contained in:
parent
8db2c1158e
commit
d45ec50076
82 changed files with 234 additions and 229 deletions
|
@ -101,7 +101,7 @@ inline ZArrayIteratorImpl<T, parallel>::ZArrayIteratorImpl(ZArray<T>* array) :
|
|||
template <typename T, bool parallel>
|
||||
inline bool ZArrayIteratorImpl<T, parallel>::next(T* elem) {
|
||||
if (parallel) {
|
||||
const size_t next = Atomic::add(1u, &_next) - 1u;
|
||||
const size_t next = Atomic::add(&_next, 1u) - 1u;
|
||||
if (next < _array->size()) {
|
||||
*elem = _array->at(next);
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue