Skip to content
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

Made overflow far less likely on Windows. #4

Merged
merged 1 commit into from
Mar 5, 2015
Merged

Made overflow far less likely on Windows. #4

merged 1 commit into from
Mar 5, 2015

Conversation

ebfull
Copy link
Contributor

@ebfull ebfull commented Mar 5, 2015

This shouldn't have been wrapping in the first place, as doing the operations in the other order makes this far less likely to happen. Downstream users like event_loop need this not to wrap over time; if it does it will cause serious bugs, so a panic would be much preferred for now.

I tested this and the overflows don't happen anymore, and on Windows my event loop stopped freezing. (It was wrapping every ~30 minutes, crashing my app.)

tomaka added a commit that referenced this pull request Mar 5, 2015
Made overflow far less likely on Windows.
@tomaka tomaka merged commit d2727ab into tomaka:master Mar 5, 2015
@huonw
Copy link

huonw commented Mar 5, 2015

You may also be interested in the fix applied to the standard library: rust-lang/rust#22788

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.

3 participants