Skip to content

Foundation: correct Thread.sleep(until:) on Windows #2253

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 12, 2019

Conversation

compnerd
Copy link
Member

We were computing the duration incorrectly, using the time since the
Cocoa epoch rather than now resulting in what appeared to be an infinite
sleep. Correct the duration which is relative to now in 100ns
intervals. This allows the NSLock tests to succeed.

We were computing the duration incorrectly, using the time since the
Cocoa epoch rather than now resulting in what appeared to be an infinite
sleep.  Correct the duration which is relative to *now* in 100ns
intervals.  This allows the NSLock tests to succeed.
@compnerd
Copy link
Member Author

@swift-ci please test

@compnerd compnerd merged commit b49545f into swiftlang:master May 12, 2019
@compnerd compnerd deleted the and-now-i-sleep branch May 12, 2019 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant