summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api/thread/main.cpp
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2017-01-07 02:48:30 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2017-01-07 02:48:30 +0000
commitdeaceefc4b7018d98e0d27c66a0e2e063e1f03f0 (patch)
tree01d09517a8de83137e9c6eb5d801f7eb56e7e855 /lldb/packages/Python/lldbsuite/test/python_api/thread/main.cpp
parent1b0bda3310c58851c07ca1b61093f7e72665faa0 (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud