diff options
author | Jan Kotas <jkotas@microsoft.com> | 2019-07-10 17:03:03 -0700 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2019-07-11 10:44:11 -0700 |
commit | f9e9c7fe11d0a8f7e33da697ccd5844c5d8d6dfd (patch) | |
tree | c2ce1e1ca19172130c178fa055e760291fcfe8f8 /src/System.Private.CoreLib | |
parent | eff4feaa164ea7b6644fa7fb37f8238184de4cbc (diff) | |
download | coreclr-f9e9c7fe11d0a8f7e33da697ccd5844c5d8d6dfd.tar.gz coreclr-f9e9c7fe11d0a8f7e33da697ccd5844c5d8d6dfd.tar.bz2 coreclr-f9e9c7fe11d0a8f7e33da697ccd5844c5d8d6dfd.zip |
Fix build break in TimerQueue.Portable.cs
Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
Diffstat (limited to 'src/System.Private.CoreLib')
-rw-r--r-- | src/System.Private.CoreLib/shared/System/Threading/TimerQueue.Portable.cs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/System.Private.CoreLib/shared/System/Threading/TimerQueue.Portable.cs b/src/System.Private.CoreLib/shared/System/Threading/TimerQueue.Portable.cs index 7fa4f2241c..587eaca77a 100644 --- a/src/System.Private.CoreLib/shared/System/Threading/TimerQueue.Portable.cs +++ b/src/System.Private.CoreLib/shared/System/Threading/TimerQueue.Portable.cs @@ -22,7 +22,7 @@ namespace System.Threading private static readonly AutoResetEvent s_timerEvent = new AutoResetEvent(false); private bool _isScheduled; - private int _scheduledDueTimeMs; + private long _scheduledDueTimeMs; private TimerQueue(int id) { @@ -50,7 +50,7 @@ namespace System.Threading private bool SetTimer(uint actualDuration) { Debug.Assert((int)actualDuration >= 0); - int dueTimeMs = TickCount + (int)actualDuration; + long dueTimeMs = TickCount64 + (int)actualDuration; AutoResetEvent timerEvent = s_timerEvent; lock (timerEvent) { @@ -92,14 +92,14 @@ namespace System.Threading { timerEvent.WaitOne(shortestWaitDurationMs); - int currentTimeMs = TickCount; + long currentTimeMs = TickCount64; shortestWaitDurationMs = int.MaxValue; lock (timerEvent) { for (int i = timers.Count - 1; i >= 0; --i) { TimerQueue timer = timers[i]; - int waitDurationMs = timer._scheduledDueTimeMs - currentTimeMs; + long waitDurationMs = timer._scheduledDueTimeMs - currentTimeMs; if (waitDurationMs <= 0) { timer._isScheduled = false; @@ -116,7 +116,7 @@ namespace System.Threading if (waitDurationMs < shortestWaitDurationMs) { - shortestWaitDurationMs = waitDurationMs; + shortestWaitDurationMs = (int)waitDurationMs; } } } |