diff options
Diffstat (limited to 'src/mscorlib/src/System/IAppDomainPauseManager.cs')
-rw-r--r-- | src/mscorlib/src/System/IAppDomainPauseManager.cs | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/src/mscorlib/src/System/IAppDomainPauseManager.cs b/src/mscorlib/src/System/IAppDomainPauseManager.cs index 902a79bd2a..cd3a9033de 100644 --- a/src/mscorlib/src/System/IAppDomainPauseManager.cs +++ b/src/mscorlib/src/System/IAppDomainPauseManager.cs @@ -32,46 +32,6 @@ namespace System } static readonly AppDomainPauseManager instance = new AppDomainPauseManager(); - internal static AppDomainPauseManager Instance - { - get { return instance; } - } - - // FAS: IAppDomainPauseConsumer interface implementation - // currently there is nothing we do here as the implementation - // of updating pause times have been moved to native CorHost2 - public void Pausing() - { - } - - public void Paused() - { - Debug.Assert(!isPaused); - - if(ResumeEvent == null) - ResumeEvent = new ManualResetEvent(false); - else - ResumeEvent.Reset(); - - Timer.Pause(); - - // Set IsPaused at the last as other threads seeing it set, will expect a valid - // reset ResumeEvent. Also the requirement here is that only after Paused - // returns other threads should block on this event. So there is a race condition here. - isPaused = true; - } - - public void Resuming() - { - Debug.Assert(isPaused); - isPaused = false; - ResumeEvent.Set(); - } - - public void Resumed() - { - Timer.Resume(); - } private static volatile bool isPaused; |