summaryrefslogtreecommitdiffstats
path: root/libcxx/include/thread
diff options
context:
space:
mode:
authorHoward Hinnant <hhinnant@apple.com>2010-11-20 19:16:30 +0000
committerHoward Hinnant <hhinnant@apple.com>2010-11-20 19:16:30 +0000
commit3dc6455ff0216030b1864b1d9676549f74f1a128 (patch)
tree1c4a1fc9a4e36b4a3081b71563f3184d4de66542 /libcxx/include/thread
parentddd1b7b801d8241dcc28c43792d0b73bac354632 (diff)
downloadbcm5719-llvm-3dc6455ff0216030b1864b1d9676549f74f1a128.tar.gz
bcm5719-llvm-3dc6455ff0216030b1864b1d9676549f74f1a128.zip
N3191: C++ Timeout Specification
llvm-svn: 119909
Diffstat (limited to 'libcxx/include/thread')
-rw-r--r--libcxx/include/thread4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/include/thread b/libcxx/include/thread
index fe671b25632..abb56f4cb6c 100644
--- a/libcxx/include/thread
+++ b/libcxx/include/thread
@@ -406,10 +406,10 @@ sleep_until(const chrono::time_point<_Clock, _Duration>& __t)
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
OpenPOWER on IntegriCloud