From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30901 invoked by alias); 31 Mar 2012 15:20:10 -0000 Received: (qmail 30891 invoked by uid 22791); 31 Mar 2012 15:20:09 -0000 X-SWARE-Spam-Status: No, hits=-3.7 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,KHOP_THREADED,TW_CX,TW_DC X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 31 Mar 2012 15:19:56 +0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/52680] std::this_thread::sleep_for #ifdef'd out by _GLIBCXX_USE_NANOSLEEP Date: Sat, 31 Mar 2012 16:19:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Status Last reconfirmed Ever Confirmed Severity Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2012-03/txt/msg02747.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52680 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2012-03-31 Ever Confirmed|0 |1 Severity|normal |enhancement --- Comment #7 from Jonathan Wakely 2012-03-31 15:19:38 UTC --- ok, great :) As I said, we do need to revisit the configure-time checks which determine whether to use nanonsleep and sched_yield. Doing so is on my TODO list so I'm going to confirm this PR but as an enhancement rather than a bug. For the benefit of the other maintainers: in some off-list discussion with Rainer I suggested that we might want to use --enable-libstdcxx-time by default on Solaris because sched_yield is defined in libposix4 and doesn't depend on libpthread. Additionally, we should note that librt(3LIB) on Solaris says: "The name libposix4 is maintained for backward compatibility and should be avoided. librt is the preferred name for this library."