Lines Matching refs:curCount
555 int32_t curCount = impl->mStrong.load(std::memory_order_relaxed); in attemptIncStrong() local
557 ALOG_ASSERT(curCount >= 0, in attemptIncStrong()
560 while (curCount > 0 && curCount != INITIAL_STRONG_VALUE) { in attemptIncStrong()
563 if (impl->mStrong.compare_exchange_weak(curCount, curCount+1, in attemptIncStrong()
571 if (curCount <= 0 || curCount == INITIAL_STRONG_VALUE) { in attemptIncStrong()
579 if (curCount <= 0) { in attemptIncStrong()
589 while (curCount > 0) { in attemptIncStrong()
590 if (impl->mStrong.compare_exchange_weak(curCount, curCount+1, in attemptIncStrong()
599 if (curCount <= 0) { in attemptIncStrong()
616 curCount = impl->mStrong.fetch_add(1, std::memory_order_relaxed); in attemptIncStrong()
622 if (curCount != 0 && curCount != INITIAL_STRONG_VALUE) { in attemptIncStrong()
631 ALOGD("attemptIncStrong of %p from %p: cnt=%d\n", this, id, curCount); in attemptIncStrong()
641 if (curCount == INITIAL_STRONG_VALUE) { in attemptIncStrong()
653 int32_t curCount = impl->mWeak.load(std::memory_order_relaxed); in attemptIncWeak() local
654 ALOG_ASSERT(curCount >= 0, "attemptIncWeak called on %p after underflow", in attemptIncWeak()
656 while (curCount > 0) { in attemptIncWeak()
657 if (impl->mWeak.compare_exchange_weak(curCount, curCount+1, in attemptIncWeak()
664 if (curCount > 0) { in attemptIncWeak()
668 return curCount > 0; in attemptIncWeak()