void StressLog::Enter(CRITSEC_COOKIE) { STATIC_CONTRACT_LEAF; IncCantAllocCount(); ClrEnterCriticalSection(theLog.lock); DecCantAllocCount(); }
HRESULT CLoadContext::Lock() { HRESULT hr = S_OK; ClrEnterCriticalSection(_cs); return hr; }