| 62 | void AddRefInternal() { m_refs.fetch_add(1); } |
| 63 | |
| 64 | void ReleaseInternal() |
| 65 | { |
| 66 | if (m_refs.fetch_sub(1) == 1) |
| 67 | { |
| 68 | if (!m_registeredRef) |
| 69 | delete this; |
| 70 | } |
| 71 | } |
| 72 | |
| 73 | public: |
| 74 | std::atomic<int> m_refs; |
nothing calls this directly
no outgoing calls
no test coverage detected