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:
authorStephen Toub <stoub@microsoft.com>2019-08-14 09:18:06 +0300
committerMarek Safar <marek.safar@gmail.com>2019-08-14 22:19:04 +0300
commita103b78163bc4a7c7852272e0a391557b9d32ff7 (patch)
treed0b59f73a23fd2fa8301e17a744dc6cdf92de026
parente46b3efbd04ff736f8244bcfcedc1ea3b4bbaefb (diff)
Delete dead _pauseTicks from TimerQueue (dotnet/coreclr#26160)
Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
-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,