Add an extra conversion since clocks might not necessarily return nanoseconds from time_from_epoch().
Please use GitHub pull requests for new patches. Avoid migrating existing patches. Phabricator shutdown timeline
Sep 11 2019
Sep 10 2019
Restore original behavior that cv_status::timeout is immediately returned if the absolute time of wait_until() has already passed.
Fix return 0 location in test.
Aug 26 2019
Are there any other comments for this change? I think my latest patchset takes into consideration the previous comments.
Aug 13 2019
Aug 12 2019
I simplified the code a bit more and responded to the comments. I haven't had a good chance to test this yet, but pushing early for feedback.
Responding to review comments
Jul 26 2019
So, to make sure I understand, this patch uses something that is *not yet* in POSIX, it's only proposed, correct?
Clarify that pthread_cond_clockwait() is only proposed to POSIX.
Mar 28 2018
Update commit message
Mar 27 2018
Thanks for the comments. I'm very open to suggestions if you have any better way of doing this.
Aug 15 2017
This is mostly an RFC. The underlying issue is that we cannot use timed waits based on CLOCK_REALTIME on Android. In trying to fix that, I figured I might as well try implementing the standard as described, though I understand that there'd be resistance to such a re-implementation.
Mar 8 2017
I don't have commit access, so please commit for me.
Moved comments to an appropriate line