N3191: C++ Timeout Specification
llvm-svn: 119909
Cr-Mirrored-From: sso://chromium.googlesource.com/_direct/external/github.com/llvm/llvm-project
Cr-Mirrored-Commit: 3dc6455ff0216030b1864b1d9676549f74f1a128
diff --git a/include/thread b/include/thread
index fe671b2..abb56f4 100644
--- a/include/thread
+++ b/include/thread
@@ -406,10 +406,10 @@
template <class _Duration>
inline _LIBCPP_INLINE_VISIBILITY
void
-sleep_until(const chrono::time_point<chrono::monotonic_clock, _Duration>& __t)
+sleep_until(const chrono::time_point<chrono::steady_clock, _Duration>& __t)
{
using namespace chrono;
- sleep_for(__t - monotonic_clock::now());
+ sleep_for(__t - steady_clock::now());
}
inline _LIBCPP_INLINE_VISIBILITY