MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / StrongUnref

Function StrongUnref

common/internal/reference_count.h:303–312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

301}
302
303inline void StrongUnref(const ReferenceCount& refcount) noexcept {
304 const auto count =
305 refcount.strong_refcount_.fetch_sub(1, std::memory_order_acq_rel);
306 ABSL_DCHECK_GT(count, 0);
307 ABSL_ASSUME(count > 0);
308 if (ABSL_PREDICT_FALSE(count == 1)) {
309 const_cast<ReferenceCount&>(refcount).Finalize();
310 WeakUnref(refcount);
311 }
312}
313
314inline void StrongUnref(const ReferenceCount* absl_nullable refcount) noexcept {
315 if (refcount != nullptr) {

Callers 9

TESTFunction · 0.85
UnownFunction · 0.85
TESTFunction · 0.85
TESTFunction · 0.85
DestroyMediumFunction · 0.85
RemovePrefixMethod · 0.85
RemoveSuffixMethod · 0.85
operator()Method · 0.85
TESTFunction · 0.85

Calls 2

WeakUnrefFunction · 0.85
FinalizeMethod · 0.45

Tested by 4

TESTFunction · 0.68
TESTFunction · 0.68
TESTFunction · 0.68
TESTFunction · 0.68