This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/41861] New: <condition_variable> does not use monotonic_clock
- From: "atgraham at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Oct 2009 23:46:32 -0000
- Subject: [Bug libstdc++/41861] New: <condition_variable> does not use monotonic_clock
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
<mutex> looks like this:
171 #ifdef _GLIBCXX_USE_CLOCK_MONOTONIC
172 typedef chrono::monotonic_clock __clock_t;
173 #else
174 typedef chrono::high_resolution_clock __clock_t;
175 #endif
...but <condition_variable> only has this:
56 typedef chrono::system_clock __clock_t;
Shouldn't <condition_variable> be using the monotonic_clock if available, just
like <mutex>?
--
Summary: <condition_variable> does not use monotonic_clock
Product: gcc
Version: 4.4.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: atgraham at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41861