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.
| 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. |
| 79 | inline bool AtomicRefCountIsZero(volatile AtomicRefCount* ptr) { |
| 80 | return const_cast<AtomicRefCount*>(ptr)->IsZero(); |
| 81 | } |
| 82 | |
| 83 | } // namespace base |
| 84 |
nothing calls this directly
no test coverage detected