-
Notifications
You must be signed in to change notification settings - Fork 667
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
Introduce timer_*
support
#1622
Conversation
6edeef3
to
7f9da7d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a good start, especially the documentation. In addition to the inline comments, could you please add some tests and an example?
c557721
to
b55d254
Compare
I believe this is ready for re-review. I've expanded OS coverage to include everything libc covers and added a |
I believe this is ready again. I did manage to tidy up the cfg mess in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you ever try to write a test? Something like test_alarm
in test/test_unistd.rs might be a good template to follow.
I didn't, no, as mentioned here I was open to suggestions considering the low surface area introduced in this patch. I'll look at what's in |
d0fa578
to
e28c074
Compare
Aside from this outstanding thread I've incorporated feedback and think this is ready for review again. Of note I've added a |
This commit adds support for the signal timer mechanism in POSIX, the mirror to timerfd on Linux. Resolves nix-rust#1424 Signed-off-by: Brian L. Troutwine <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bors r+
This commit adds support for the signal timer mechanism in POSIX, the mirror to timerfd on Linux. I wasn't quite sure of how to fit into the project organization but hopefully this patch isn't too far off.
Resolves #1424
Signed-off-by: Brian L. Troutwine [email protected]