MCPcopy Create free account
hub / github.com/DamRsn/NeuralNote / NonDelegatingAddRef

Method NonDelegatingAddRef

ThirdParty/ASIO/common/combase.cpp:109–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107/* AddRef */
108
109STDMETHODIMP_(ULONG) CUnknown::NonDelegatingAddRef()
110{
111 LONG lRef = InterlockedIncrement( &m_cRef );
112 ASSERT(lRef > 0);
113 DbgLog((LOG_MEMORY,3,TEXT(" Obj %d ref++ = %d"),
114 m_dwCookie, m_cRef));
115 return max(ULONG(m_cRef), 1ul);
116}
117
118
119

Callers 1

CreateInstanceMethod · 0.80

Calls 2

InterlockedIncrementFunction · 0.85
maxFunction · 0.85

Tested by

no test coverage detected