public override void Delete() { lock (outerInstance) { // Suppress the delete request if this commit point is // currently snapshotted. if (!outerInstance.m_refCounts.ContainsKey(m_cp.Generation)) { m_cp.Delete(); } } }
public override void Delete() { UninterruptableMonitor.Enter(outerInstance); try { // Suppress the delete request if this commit point is // currently snapshotted. if (!outerInstance.m_refCounts.ContainsKey(m_cp.Generation)) { m_cp.Delete(); } } finally { UninterruptableMonitor.Exit(outerInstance); } }