void IDisposable.Dispose() { // Ignore during shutdown. if (Environment.HasShutdownStarted) { return; } if (_frameNumber != ThreadKindStack.Count) { throw new InternalException(); } ThreadKinds previous = ThreadKindStack.Pop(); if (CurrentThreadKind != previous) { Print("Thread reverts:(" + CurrentThreadKind.ToString() + ")"); } }
void IDisposable.Dispose() { // Ignore during shutdown. if (NclUtilities.HasShutdownStarted) { return; } if (m_FrameNumber != ThreadKindStack.Count) { throw new InternalException(); } ThreadKinds previous = ThreadKindStack.Pop(); #if TRAVE if (CurrentThreadKind != previous) { Print("Thread reverts:(" + CurrentThreadKind.ToString() + ")"); } #endif }