8234737: Harmonize parameter order in Atomic - add

Reviewed-by: rehn, dholmes
This commit is contained in:
Stefan Karlsson 2019-11-25 12:31:39 +01:00
parent 8db2c1158e
commit d45ec50076
82 changed files with 234 additions and 229 deletions

View file

@ -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;