Lines Matching refs:fRefCnt
35 SkRefCntBase() : fRefCnt(1) {} in SkRefCntBase()
43 fRefCnt.store(0, std::memory_order_relaxed); in ~SkRefCntBase()
51 if (1 == fRefCnt.load(std::memory_order_acquire)) { in unique()
65 (void)fRefCnt.fetch_add(+1, std::memory_order_relaxed); in ref()
75 if (1 == fRefCnt.fetch_add(-1, std::memory_order_acq_rel)) { in unref()
87 return fRefCnt.load(std::memory_order_relaxed); in getRefCnt()
97 fRefCnt.store(1, std::memory_order_relaxed); in internal_dispose()
106 mutable std::atomic<int32_t> fRefCnt; variable
162 SkNVRefCnt() : fRefCnt(1) {} in SkNVRefCnt()
165 int rc = fRefCnt.load(std::memory_order_relaxed); in ~SkNVRefCnt()
175 bool unique() const { return 1 == fRefCnt.load(std::memory_order_acquire); } in unique()
176 void ref() const { (void)fRefCnt.fetch_add(+1, std::memory_order_relaxed); } in ref()
178 if (1 == fRefCnt.fetch_add(-1, std::memory_order_acq_rel)) { in unref()
180 SkDEBUGCODE(fRefCnt.store(1, std::memory_order_relaxed)); in unref()
187 mutable std::atomic<int32_t> fRefCnt;