This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: RFA (libstdc++): C++/v3 PATCH for c++/24163 (lookup in dependent bases) and c++/29131
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: Jason Merrill <jason at redhat dot com>
- Cc: gcc-patches List <gcc-patches at gcc dot gnu dot org>, Benjamin Kosnik <bkoz at redhat dot com>, "libstdc++" <libstdc++ at gcc dot gnu dot org>
- Date: Fri, 27 May 2011 22:38:33 +0100
- Subject: Re: RFA (libstdc++): C++/v3 PATCH for c++/24163 (lookup in dependent bases) and c++/29131
- References: <4DD69790.8070101@redhat.com> <BANLkTi=4+SxZ1+wJbjZkGXEjy28YZsKLYQ@mail.gmail.com>
On 27 May 2011 09:30, Jonathan Wakely wrote:
>
> I think this piece is also needed due to the fix for 29131:
>
> Index: include/std/thread
> ===================================================================
> --- include/std/thread ?(revision 174307)
> +++ include/std/thread ?(working copy)
> @@ -260,12 +260,6 @@
> ?#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 @@
>
> ? ? ? ?::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
>
> That only shows up if you configure with --enable-libstcxx-time
>
> I'll finish reg-testing it and submit it when I get home this evening.
>
2011-05-27 Jonathan Wakely <jwakely.gcc@gmail.com>
* include/std/thread (this_thread::sleep_until): Move after sleep_for.
Committed to trunk