Example #1
0
void StressLog::Enter(CRITSEC_COOKIE) {
    STATIC_CONTRACT_LEAF;
    
    IncCantAllocCount();
    ClrEnterCriticalSection(theLog.lock);
    DecCantAllocCount();
}
Example #2
0
HRESULT CLoadContext::Lock()
{
    HRESULT                              hr = S_OK;

    ClrEnterCriticalSection(_cs);

    return hr;
}