Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--netcore/System.Private.CoreLib/shared/System/Threading/Timer.cs11
1 files changed, 0 insertions, 11 deletions
diff --git a/netcore/System.Private.CoreLib/shared/System/Threading/Timer.cs b/netcore/System.Private.CoreLib/shared/System/Threading/Timer.cs
index b3088c7f362..4a7244bff3b 100644
--- a/netcore/System.Private.CoreLib/shared/System/Threading/Timer.cs
+++ b/netcore/System.Private.CoreLib/shared/System/Threading/Timer.cs
@@ -79,14 +79,6 @@ namespace System.Threading
return true; //the timer will fire earlier than this request
}
- // If Pause is underway then do not schedule the timers
- // A later update during resume will re-schedule
- if (_pauseTicks != 0)
- {
- Debug.Assert(!_isTimerScheduled);
- return true;
- }
-
if (SetTimer(actualDuration))
{
_isTimerScheduled = true;
@@ -123,9 +115,6 @@ namespace System.Threading
// need to look at the long list because the current time will be <= _currentAbsoluteThreshold.
private const int ShortTimersThresholdMilliseconds = 333;
- // Time when Pause was called
- private readonly int _pauseTicks = 0;
-
// Fire any timers that have expired, and update the native timer to schedule the rest of them.
// We're in a thread pool work item here, and if there are multiple timers to be fired, we want
// to queue all but the first one. The first may can then be invoked synchronously or queued,