[PATCH] [libc++] Handle partial nanosleeps in this_thread::sleep_for
David Majnemer
david.majnemer at gmail.com
Wed May 28 23:24:32 PDT 2014
sleep_for is currently implemented by calculating an appropriate timespec
from a chrono::nanoseconds and passing the result to nanosleep.
However, signals may result in nanosleep returning with only some of the
requested sleeping performed.
Utilize nanosleep's "time-remaining" out parameter to continue sleeping
when this occurs.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140528/0ff5619e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t.patch
Type: application/octet-stream
Size: 1483 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140528/0ff5619e/attachment.obj>
More information about the cfe-commits
mailing list