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

Method ReleaseInternal

api/debuggerapi.h:30–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28 void AddRefInternal() { m_refs.fetch_add(1); }
29
30 void ReleaseInternal()
31 {
32 if (m_refs.fetch_sub(1) == 1)
33 delete this;
34 }
35
36 public:
37 std::atomic<int> m_refs;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected