Reference count increment - must be out-of-line to prevent cross-binary vtable issues.
| 26 | |
| 27 | // Reference count increment - must be out-of-line to prevent cross-binary vtable issues. |
| 28 | void 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). |