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

Function WeakRef

common/internal/reference_count.h:343–347  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

341}
342
343inline void WeakRef(const ReferenceCount& refcount) noexcept {
344 const auto count =
345 refcount.weak_refcount_.fetch_add(1, std::memory_order_relaxed);
346 ABSL_DCHECK_GT(count, 0);
347}
348
349inline void WeakRef(const ReferenceCount* absl_nullable refcount) noexcept {
350 if (refcount != nullptr) {

Callers 1

TESTFunction · 0.85

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.68