thread (this_thread::sleep_until): Move after sleep_for.
authorJonathan Wakely <jwakely.gcc@gmail.com>
Fri, 27 May 2011 21:37:53 +0000 (21:37 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 27 May 2011 21:37:53 +0000 (22:37 +0100)
2011-05-27  Jonathan Wakely  <jwakely.gcc@gmail.com>

* include/std/thread (this_thread::sleep_until): Move after sleep_for.

From-SVN: r174365

libstdc++-v3/ChangeLog
libstdc++-v3/include/std/thread

index 5be06f5dfead4381e4b590b75f5cce8479225266..e5915c1fba302a3e2831ccb4d68375d2425d1a36 100644 (file)
@@ -1,3 +1,7 @@
+2011-05-27  Jonathan Wakely  <jwakely.gcc@gmail.com>
+
+       * include/std/thread (this_thread::sleep_until): Move after sleep_for.
+
 2011-05-27  Paolo Carlini  <paolo.carlini@oracle.com>
 
        PR libstdc++/49187
index 4fa5e505146060013afb5e1fe61d06b6ce2cb367..e7a9b14276f6f3f720161ee29d62ab98a290fa06 100644 (file)
@@ -260,12 +260,6 @@ _GLIBCXX_END_NAMESPACE_VERSION
 #endif
 
 #ifdef _GLIBCXX_USE_NANOSLEEP
-    /// sleep_until
-    template<typename _Clock, typename _Duration>
-      inline void
-      sleep_until(const chrono::time_point<_Clock, _Duration>& __atime)
-      { sleep_for(__atime - _Clock::now()); }
-
     /// sleep_for
     template<typename _Rep, typename _Period>
       inline void
@@ -285,6 +279,12 @@ _GLIBCXX_END_NAMESPACE_VERSION
 
        ::nanosleep(&__ts, 0);
       }
+
+    /// sleep_until
+    template<typename _Clock, typename _Duration>
+      inline void
+      sleep_until(const chrono::time_point<_Clock, _Duration>& __atime)
+      { sleep_for(__atime - _Clock::now()); }
 #endif
 
   _GLIBCXX_END_NAMESPACE_VERSION