Lines Matching refs:curCount
444 int32_t curCount = impl->mStrong;
445 LOG_ASSERT(curCount >= 0, "attemptIncStrong called on %p after underflow",
447 while (curCount > 0 && curCount != INITIAL_STRONG_VALUE) {
448 if (android_atomic_cmpxchg(curCount, curCount+1, &impl->mStrong) == 0) {
451 curCount = impl->mStrong;
454 if (curCount <= 0 || curCount == INITIAL_STRONG_VALUE) {
456 if (curCount == INITIAL_STRONG_VALUE) {
475 curCount = android_atomic_inc(&impl->mStrong);
482 if (curCount > 0 && curCount < INITIAL_STRONG_VALUE) {
490 LOGD("attemptIncStrong of %p from %p: cnt=%d\n", this, id, curCount);
493 if (curCount == INITIAL_STRONG_VALUE) {
505 int32_t curCount = impl->mWeak;
506 LOG_ASSERT(curCount >= 0, "attemptIncWeak called on %p after underflow",
508 while (curCount > 0) {
509 if (android_atomic_cmpxchg(curCount, curCount+1, &impl->mWeak) == 0) {
512 curCount = impl->mWeak;
515 if (curCount > 0) {
519 return curCount > 0;