Lines Matching refs:curCount
516 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()
585 if (curCount > 0 && curCount < INITIAL_STRONG_VALUE) { in attemptIncStrong()
593 ALOGD("attemptIncStrong of %p from %p: cnt=%d\n", this, id, curCount); in attemptIncStrong()
603 if (curCount == INITIAL_STRONG_VALUE) { in attemptIncStrong()
615 int32_t curCount = impl->mWeak.load(std::memory_order_relaxed); in attemptIncWeak() local
616 ALOG_ASSERT(curCount >= 0, "attemptIncWeak called on %p after underflow", in attemptIncWeak()
618 while (curCount > 0) { in attemptIncWeak()
619 if (impl->mWeak.compare_exchange_weak(curCount, curCount+1, in attemptIncWeak()
626 if (curCount > 0) { in attemptIncWeak()
630 return curCount > 0; in attemptIncWeak()