Searched refs:kRefIncrement (Results 1 – 2 of 2) sorted by relevance
36 constexpr Refcount() : count_{kRefIncrement} {} in Refcount()42 count_.fetch_add(kRefIncrement, std::memory_order_relaxed); in Increment()55 return refcount != kRefIncrement && in Decrement()56 count_.fetch_sub(kRefIncrement, std::memory_order_acq_rel) != in Decrement()57 kRefIncrement; in Decrement()63 count_.fetch_sub(kRefIncrement, std::memory_order_acq_rel); in DecrementExpectHighRefcount()65 return refcount != kRefIncrement; in DecrementExpectHighRefcount()82 return count_.load(std::memory_order_acquire) == kRefIncrement; in IsOne()98 kRefIncrement = 1 << kImmortalShift, enumerator99 kImmortalTag = kRefIncrement - 1
80 constexpr Refcount() : count_{kRefIncrement} {} in Refcount()86 count_.fetch_add(kRefIncrement, std::memory_order_relaxed); in Increment()99 return refcount != kRefIncrement && in Decrement()100 count_.fetch_sub(kRefIncrement, std::memory_order_acq_rel) != in Decrement()101 kRefIncrement; in Decrement()107 count_.fetch_sub(kRefIncrement, std::memory_order_acq_rel); in DecrementExpectHighRefcount()109 return refcount != kRefIncrement; in DecrementExpectHighRefcount()126 return count_.load(std::memory_order_acquire) == kRefIncrement; in IsOne()142 kRefIncrement = 1 << kImmortalShift, enumerator143 kImmortalTag = kRefIncrement - 1