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

Method add_shared_ref

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

Reference count increment - must be out-of-line to prevent cross-binary vtable issues.

Source from the content-addressed store, hash-verified

26
27// Reference count increment - must be out-of-line to prevent cross-binary vtable issues.
28void ControlBlockBase::add_shared_ref() {
29 if (shared_count != NO_TRACKING_VALUE) {
30 ++shared_count;
31 }
32}
33
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).

Callers 1

shared_ptrClass · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected