internal DbgDotNetValue CreateDotNetValue_CorDebug(DbgCorValueHolder value) { debuggerThread.VerifyAccess(); var dnValue = new DbgDotNetValueImpl(this, value); lock (lockObj) dotNetValuesToCloseOnContinue.Add(dnValue); return(dnValue); }
internal void Close(DbgCorValueHolder value) { if (CheckCorDebugThread()) { value.Dispose_CorDebug(); return; } bool start; lock (lockObj) { start = valuesToCloseNow.Count == 0; valuesToCloseNow.Add(value); } if (start) { CorDebugThread(CloseValuesNow_CorDebug); } }