commit | cc1d780758e3759212d452e7d71da75bb3b2c076 | [log] [tgz] |
---|---|---|
author | Saleem Abdulrasool <compnerd@compnerd.org> | Sat Jan 07 02:48:30 2017 +0000 |
committer | Saleem Abdulrasool <compnerd@compnerd.org> | Sat Jan 07 02:48:30 2017 +0000 |
tree | 8052c355b37ce5e990a70d7460b5a81e0939744e | |
parent | 2342c11c50e53c34dd1f5137513d96e9eba9eb3b [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. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@291331 91177308-0d34-0410-b5e6-96231b3b80d8