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 | deaceefc4b7018d98e0d27c66a0e2e063e1f03f0 (patch) | |
tree | 01d09517a8de83137e9c6eb5d801f7eb56e7e855 /lldb/packages/Python/lldbsuite/test/python_api/thread/main.cpp | |
parent | 1b0bda3310c58851c07ca1b61093f7e72665faa0 (diff) | |
download | bcm5719-llvm-deaceefc4b7018d98e0d27c66a0e2e063e1f03f0.tar.gz bcm5719-llvm-deaceefc4b7018d98e0d27c66a0e2e063e1f03f0.zip |
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
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/thread/main.cpp')
0 files changed, 0 insertions, 0 deletions