static HRESULT WINAPI DI8CF_LockServer(LPCLASSFACTORY iface,BOOL dolock) { TRACE("(%p)->(%d)\n", iface, dolock); if(dolock) LockModule(); else UnlockModule(); return S_OK; }
static HRESULT WINAPI MsiCF_LockServer(LPCLASSFACTORY iface, BOOL dolock) { TRACE("%p %d\n", iface, dolock); if (dolock) LockModule(); else UnlockModule(); return S_OK; }
template <class T> STDMETHODIMP CClassFactory<T>::LockServer ( BOOL bLock ) { if ( bLock ) { LockModule(); } else { UnlockModule(); } return S_OK; }
ULONG __stdcall WaveProperty::Release() { DebugPrintLn(NAME TEXT("::Release() begin %d"), m_cRef); LONG cRef = ::InterlockedDecrement(&m_cRef); if ( cRef == 0 ) { DebugPrintLn(TEXT("Deleting...")); delete this; DebugPrintLn(TEXT("Deleted")); } UnlockModule(); DebugPrintLn(NAME TEXT("::Release() end %d"), cRef); return static_cast<ULONG>(cRef); }
ULONG __stdcall OutputComponentBase::Release() { DebugPrintLn(TEXT("%s::%s::Release() begin %d"), COMP_NAME, COMP_BASE, m_cRef); LONG cRef = ::InterlockedDecrement(&m_cRef); if ( cRef == 0 ) { DebugPrintLn(TEXT(". Deleting...")); delete this; DebugPrintLn(TEXT(". Deleted")); } UnlockModule(); DebugPrintLn(TEXT("%s::%s::Release() end %d"), COMP_NAME, COMP_BASE, cRef); return static_cast<ULONG>(cRef); }
static ULONG WINAPI MsiCF_Release(LPCLASSFACTORY iface) { UnlockModule(); return 1; }
Trader::~Trader() { UnlockModule(); }
HRESULT __stdcall TraderClassObject::LockServer(BOOL fLock) { fLock ? LockModule() : UnlockModule(); return S_OK; }
TraderClassObject::~TraderClassObject() { UnlockModule(); }