MCPcopy Create free account
hub / github.com/Vector35/debugger / ReleaseInternal

Method ReleaseInternal

api/debuggerapi.h:64–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected