Lines Matching refs:curCount
591 int32_t curCount = impl->mStrong.load(std::memory_order_relaxed); in attemptIncStrong() local
593 ALOG_ASSERT(curCount >= 0, in attemptIncStrong()
596 while (curCount > 0 && curCount != INITIAL_STRONG_VALUE) { in attemptIncStrong()
599 if (impl->mStrong.compare_exchange_weak(curCount, curCount+1, in attemptIncStrong()
607 if (curCount <= 0 || curCount == INITIAL_STRONG_VALUE) { in attemptIncStrong()
615 if (curCount <= 0) { in attemptIncStrong()
625 while (curCount > 0) { in attemptIncStrong()
626 if (impl->mStrong.compare_exchange_weak(curCount, curCount+1, in attemptIncStrong()
635 if (curCount <= 0) { in attemptIncStrong()
652 curCount = impl->mStrong.fetch_add(1, std::memory_order_relaxed); in attemptIncStrong()
658 if (curCount != 0 && curCount != INITIAL_STRONG_VALUE) { in attemptIncStrong()
667 ALOGD("attemptIncStrong of %p from %p: cnt=%d\n", this, id, curCount); in attemptIncStrong()
677 if (curCount == INITIAL_STRONG_VALUE) { in attemptIncStrong()
689 int32_t curCount = impl->mWeak.load(std::memory_order_relaxed); in attemptIncWeak() local
690 ALOG_ASSERT(curCount >= 0, "attemptIncWeak called on %p after underflow", in attemptIncWeak()
692 while (curCount > 0) { in attemptIncWeak()
693 if (impl->mWeak.compare_exchange_weak(curCount, curCount+1, in attemptIncWeak()
700 if (curCount > 0) { in attemptIncWeak()
704 return curCount > 0; in attemptIncWeak()