diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2017-01-07 02:48:30 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2017-01-07 02:48:30 +0000 |
commit | cc1d780758e3759212d452e7d71da75bb3b2c076 (patch) | |
tree | 8052c355b37ce5e990a70d7460b5a81e0939744e /include/module.modulemap | |
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
Diffstat (limited to 'include/module.modulemap')
0 files changed, 0 insertions, 0 deletions