Home
last modified time | relevance | path

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

/system/core/libutils/
DRefBase.cpp437 int32_t curCount = impl->mStrong; in attemptIncStrong() local
439 ALOG_ASSERT(curCount >= 0, in attemptIncStrong()
442 while (curCount > 0 && curCount != INITIAL_STRONG_VALUE) { in attemptIncStrong()
445 if (android_atomic_cmpxchg(curCount, curCount+1, &impl->mStrong) == 0) { in attemptIncStrong()
450 curCount = impl->mStrong; in attemptIncStrong()
453 if (curCount <= 0 || curCount == INITIAL_STRONG_VALUE) { in attemptIncStrong()
460 if (curCount <= 0) { in attemptIncStrong()
470 while (curCount > 0) { in attemptIncStrong()
471 if (android_atomic_cmpxchg(curCount, curCount + 1, in attemptIncStrong()
477 curCount = impl->mStrong; in attemptIncStrong()
[all …]