Lines Matching defs:curCount

108     int curCount = atomicStrong_.load(std::memory_order_relaxed);
109 if (curCount >= 0) {
110 curCount = atomicStrong_.fetch_add(1, std::memory_order_relaxed);
111 if (curCount == INITIAL_PRIMARY_VALUE) {
115 return curCount;
120 int curCount = GetStrongRefCount();
121 if (curCount == INITIAL_PRIMARY_VALUE) {
123 } else if (curCount > 0) {
126 curCount = atomicStrong_.fetch_sub(1, std::memory_order_release);
128 return curCount;
143 int curCount = GetWeakRefCount();
144 if (curCount > 0) {
145 curCount = atomicWeak_.fetch_sub(1, std::memory_order_release);
148 if ((curCount == 1) || (strongRefCount == 0 && !IsLifeTimeExtended())) {
153 return curCount;
188 int curCount = GetStrongRefCount();
192 while ((curCount > 0) && (curCount != INITIAL_PRIMARY_VALUE)) {
193 if (atomicStrong_.compare_exchange_weak(curCount, curCount + 1, std::memory_order_relaxed)) {
198 curCount = atomicStrong_.load(std::memory_order_relaxed);
201 if ((curCount == INITIAL_PRIMARY_VALUE) && !IsLifeTimeExtended()) {
203 while (curCount > 0) {
204 if (atomicStrong_.compare_exchange_weak(curCount, curCount + 1, std::memory_order_relaxed)) {
208 curCount = atomicStrong_.load(std::memory_order_relaxed);
213 curCount = atomicStrong_.fetch_add(1, std::memory_order_relaxed);
217 if (curCount >= INITIAL_PRIMARY_VALUE) {
218 outCount = curCount;
223 if (curCount < 0 || (!IsLifeTimeExtended() && curCount == 0)) {
316 const int curCount = refs_->IncStrongRefCount(objectId);
318 if (curCount == INITIAL_PRIMARY_VALUE) {
332 const int curCount = refs_->DecStrongRefCount(objectId);
333 if (curCount == 1) {