commit | deaceefc4b7018d98e0d27c66a0e2e063e1f03f0 | [log] [tgz] |
---|---|---|
author | Saleem Abdulrasool <[email protected]> | Sat Jan 07 02:48:30 2017 |
committer | Saleem Abdulrasool <[email protected]> | Sat Jan 07 02:48:30 2017 |
tree | 01d09517a8de83137e9c6eb5d801f7eb56e7e855 | |
parent | 1b0bda3310c58851c07ca1b61093f7e72665faa0 [diff] |
thread: implement sleep_for on Windows Windows does not provide an implementation of `nanosleep`. Round up the time duration to the nearest ms and use `Sleep`. Although this may over-sleep, there is no hard real-time guarantee on the wake, so sleeping a bit more is better than under-sleeping as it within the specification. llvm-svn: 291331