Home
last modified time | relevance | path

Searched refs:curCount (Results 1 – 1 of 1) sorted by relevance

/system/core/libutils/
DRefBase.cpp516 int32_t curCount = impl->mStrong.load(std::memory_order_relaxed); in attemptIncStrong() local
518 ALOG_ASSERT(curCount >= 0, in attemptIncStrong()
521 while (curCount > 0 && curCount != INITIAL_STRONG_VALUE) { in attemptIncStrong()
524 if (impl->mStrong.compare_exchange_weak(curCount, curCount+1, in attemptIncStrong()
532 if (curCount <= 0 || curCount == INITIAL_STRONG_VALUE) { in attemptIncStrong()
540 if (curCount <= 0) { in attemptIncStrong()
550 while (curCount > 0) { in attemptIncStrong()
551 if (impl->mStrong.compare_exchange_weak(curCount, curCount+1, in attemptIncStrong()
560 if (curCount <= 0) { in attemptIncStrong()
577 curCount = impl->mStrong.fetch_add(1, std::memory_order_relaxed); in attemptIncStrong()
[all …]