From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27784 invoked by alias); 27 May 2011 21:38:48 -0000 Received: (qmail 27763 invoked by uid 22791); 27 May 2011 21:38:47 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,TW_CX,TW_TC X-Spam-Check-By: sourceware.org Received: from mail-px0-f176.google.com (HELO mail-px0-f176.google.com) (209.85.212.176) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 27 May 2011 21:38:34 +0000 Received: by pxi11 with SMTP id 11so1373465pxi.21 for ; Fri, 27 May 2011 14:38:33 -0700 (PDT) MIME-Version: 1.0 Received: by 10.142.217.18 with SMTP id p18mr380858wfg.248.1306532313347; Fri, 27 May 2011 14:38:33 -0700 (PDT) Received: by 10.142.69.21 with HTTP; Fri, 27 May 2011 14:38:33 -0700 (PDT) In-Reply-To: References: <4DD69790.8070101@redhat.com> Date: Sat, 28 May 2011 01:08:00 -0000 Message-ID: Subject: Re: RFA (libstdc++): C++/v3 PATCH for c++/24163 (lookup in dependent bases) and c++/29131 From: Jonathan Wakely To: Jason Merrill Cc: gcc-patches List , Benjamin Kosnik , "libstdc++" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2011-05/txt/msg02217.txt.bz2 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 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- include/std/thread =A0(revision 174307) > +++ include/std/thread =A0(working copy) > @@ -260,12 +260,6 @@ > =A0#endif > > =A0#ifdef _GLIBCXX_USE_NANOSLEEP > - =A0 =A0/// sleep_until > - =A0 =A0template > - =A0 =A0 =A0inline void > - =A0 =A0 =A0sleep_until(const chrono::time_point<_Clock, _Duration>& __a= time) > - =A0 =A0 =A0{ sleep_for(__atime - _Clock::now()); } > - > =A0 =A0 /// sleep_for > =A0 =A0 template > =A0 =A0 =A0 inline void > @@ -285,6 +279,12 @@ > > =A0 =A0 =A0 =A0::nanosleep(&__ts, 0); > =A0 =A0 =A0 } > + > + =A0 =A0/// sleep_until > + =A0 =A0template > + =A0 =A0 =A0inline void > + =A0 =A0 =A0sleep_until(const chrono::time_point<_Clock, _Duration>& __a= time) > + =A0 =A0 =A0{ sleep_for(__atime - _Clock::now()); } > =A0#endif > > =A0 _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 * include/std/thread (this_thread::sleep_until): Move after sleep_f= or. Committed to trunk