Fixed a nasty bug that would make the scheduler queue notifications using their delay time as absolute notification time, causing negative numbers to be passed to WaitOne(); updated unit test to expose this problem if it happens
git-svn-id: file:///srv/devel/repo-conversion/nusu@146 d2e56fa2-650e-0410-a79f-9358c0239efd
This commit is contained in:
parent
a6f7749121
commit
6b8362d57d
2 changed files with 7 additions and 6 deletions
|
|
@ -47,6 +47,7 @@ namespace Nuclex.Support.Scheduling {
|
|||
/// <param name="utcStartTime">Start time in UTC format</param>
|
||||
public MockTimeSource(DateTime utcStartTime) {
|
||||
this.currentTime = utcStartTime;
|
||||
this.currentTicks = 1000000000;
|
||||
}
|
||||
|
||||
/// <summary>Waits for an AutoResetEvent to become signalled</summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue