MCPcopy Create free account
hub / github.com/FastLED/FastLED / remove_shared_ref

Method remove_shared_ref

src/fl/stl/shared_ptr.cpp.hpp:36–41  ·  view source on GitHub ↗

Reference count decrement - must be out-of-line to prevent cross-binary vtable issues. Returns true if the reference count reached zero (object should be destroyed).

Source from the content-addressed store, hash-verified

34// Reference count decrement - must be out-of-line to prevent cross-binary vtable issues.
35// Returns true if the reference count reached zero (object should be destroyed).
36bool ControlBlockBase::remove_shared_ref() {
37 if (shared_count == NO_TRACKING_VALUE) {
38 return false; // Never destroy in no-tracking mode
39 }
40 return (--shared_count == 0);
41}
42
43// Check if this control block is in no-tracking mode.
44bool ControlBlockBase::is_no_tracking() const {

Callers 1

shared_ptrClass · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected