MCPcopy Create free account
hub / github.com/cztomczak/cefpython / AtomicRefCountIsZero

Function AtomicRefCountIsZero

src/include/base/cef_atomic_ref_count.h:79–81  ·  view source on GitHub ↗

Return whether the reference count is zero. With conventional object referencing counting, the object will be destroyed, so the reference count should never be zero. Hence this is generally used for a debug check.

Source from the content-addressed store, hash-verified

77// referencing counting, the object will be destroyed, so the reference count
78// should never be zero. Hence this is generally used for a debug check.
79inline bool AtomicRefCountIsZero(volatile AtomicRefCount* ptr) {
80 return const_cast<AtomicRefCount*>(ptr)->IsZero();
81}
82
83} // namespace base
84

Callers

nothing calls this directly

Calls 1

Acquire_LoadFunction · 0.50

Tested by

no test coverage detected