gcc/libstdc++-v3/src
Chris Fairles 8839907955 chrono: If _GLIBCXX_USE_MONOTONIC_CLOCK is defined...
2008-09-23  Chris Fairles <cfairles@gcc.gnu.org>

        * include/std/chrono: If _GLIBCXX_USE_MONOTONIC_CLOCK is defined, don't
        typedef monotonic_clock to system_clock and instead declare new class.
        * src/chrono.cc: Conditionally define monotonic_clock::now().
        * include/std/condition_variable (wait_until): Throw exception if
        __gthread_cond_timedwait returns with error other than timed_out. Use
        system_clock as known clock type (__clock_t) and add overloads for known
        and unknown clocks. In the unknown case, sync to the known clock.
        Implement overload taking a predicate.
        (wait_for): Implement overload taking a predicate.
        * config/abi/pre/gnu.ver: Add exports for monotonic_clock.
        * testsuite/30_threads/condition_variable_any/cons/assign_neg.cc: Modify
        line numbers.
        * testsuite/30_threads/condition_variable_any/cons/copy_neg.cc:
        Likewise.
        * testsuite/30_threads/condition_variable/cons/assign_neg.cc: Likewise.
        * testsuite/30_threads/condition_variable/cons/copy_neg.cc: Likewise.
        * testsuite/30_threads/condition_variable/member/1.cc: New.
        * testsuite/30_threads/condition_variable/member/2.cc: Likewise.

From-SVN: r140603
2008-09-23 17:34:29 +00:00
..
Makefile.am thread: New. 2008-09-13 00:32:37 +00:00
Makefile.in thread: New. 2008-09-13 00:32:37 +00:00
allocator-inst.cc c++config: Add in revised namespace associations. 2005-12-19 00:56:05 +00:00
atomic.cc atomic.cc (atomic_flag_test_and_set_explicit, [...]): Suppress unused parameter warnings. 2008-05-24 10:47:14 +00:00
bitmap_allocator.cc throw_allocator.h: Consistent @file markup. 2006-11-29 20:59:22 +00:00
chrono.cc chrono: If _GLIBCXX_USE_MONOTONIC_CLOCK is defined... 2008-09-23 17:34:29 +00:00
codecvt.cc c++config: Add in revised namespace associations. 2005-12-19 00:56:05 +00:00
compatibility-ldbl.cc gnu.ver: Remove _ZNKSt3tr14hashIgEclEg@@GLIBCXX_3.4.10 and... 2008-03-01 20:15:17 +01:00
compatibility.cc re PR other/28145 (C++ (throw() and catch(...) {/* fall through */ } ) and pthread cancellation are incompatible (at least with NPTL)) 2007-05-07 17:27:54 -04:00
complex_io.cc configure.ac: Allow both powerpc*-*-linux* and powerpc*-*-gnu* for long double compatibility. 2007-04-19 13:11:07 +01:00
concept-inst.cc c++config: Add in revised namespace associations. 2005-12-19 00:56:05 +00:00
condition_variable.cc chrono: If _GLIBCXX_USE_MONOTONIC_CLOCK is defined... 2008-09-23 17:34:29 +00:00
ctype.cc ctype.cc (use_facet<ctype<char> >, [...]): Remove specializations. 2008-09-10 21:34:38 +00:00
debug.cc re PR libstdc++/31518 (_GLIBCXX_DEBUG error message formatter line width not configurable) 2007-07-04 00:09:22 +00:00
debug_list.cc c++config: Simplify debug namespaces. 2006-02-22 00:57:24 +00:00
ext-inst.cc re PR libstdc++/28514 (libstdc++ vs. anonymous namespaces) 2006-10-17 11:56:21 +00:00
fstream-inst.cc c++config: Add in revised namespace associations. 2005-12-19 00:56:05 +00:00
functexcept.cc system_error: Align to current draft specifications. 2008-05-16 21:55:00 +00:00
globals_io.cc documentation.html: First pass at unified table of contents. 2007-11-13 17:43:57 +00:00
hash.cc gnu.ver: Remove _ZNKSt3tr14hashIgEclEg@@GLIBCXX_3.4.10 and... 2008-03-01 20:15:17 +01:00
hash_c++0x.cc functional_hash.h: Add ext/numeric_traits.h. 2007-09-09 00:05:13 +00:00
hashtable.cc hashtable.cc (__prime_list): Use __SIZEOF_LONG__. 2007-12-03 23:20:22 +00:00
hashtable_c++0x.cc hashtable.cc: New. 2007-12-03 17:22:44 +00:00
ios-inst.cc c++config: Add in revised namespace associations. 2005-12-19 00:56:05 +00:00
ios.cc re PR other/28145 (C++ (throw() and catch(...) {/* fall through */ } ) and pthread cancellation are incompatible (at least with NPTL)) 2007-05-07 17:27:54 -04:00
ios_failure.cc c++config: Add in revised namespace associations. 2005-12-19 00:56:05 +00:00
ios_init.cc documentation.html: First pass at unified table of contents. 2007-11-13 17:43:57 +00:00
ios_locale.cc c++config: Add in revised namespace associations. 2005-12-19 00:56:05 +00:00
iostream-inst.cc PR libstdc++/28080 (partial) 2007-02-26 09:36:39 +00:00
istream-inst.cc configure.ac: Allow both powerpc*-*-linux* and powerpc*-*-gnu* for long double compatibility. 2007-04-19 13:11:07 +01:00
istream.cc re PR other/28145 (C++ (throw() and catch(...) {/* fall through */ } ) and pthread cancellation are incompatible (at least with NPTL)) 2007-05-07 17:27:54 -04:00
limits.cc configure.ac (_GLIBCXX_LONG_DOUBLE_COMPAT): New check. 2006-02-07 22:23:58 +00:00
limits_c++0x.cc PR c++/33979 (partial) 2008-05-20 18:11:34 +00:00
list.cc Add parallel mode. 2007-09-11 22:32:51 +00:00
locale-inst.cc ctype.cc (use_facet<ctype<char> >, [...]): Remove specializations. 2008-09-10 21:34:38 +00:00
locale.cc re PR c++/19564 (-Wparentheses does not work with the C++ front-end) 2006-12-14 05:49:06 +00:00
locale_facets.cc locale_facets.cc: Fix typo in Copyright. 2007-11-16 17:50:50 +00:00
locale_init.cc re PR libstdc++/29426 (static __recursive_mutex init vs __GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION) 2006-10-11 20:18:36 +00:00
localename.cc PR libstdc++/28080 (partial) 2007-03-06 17:43:27 +00:00
misc-inst.cc c++config: Add in revised namespace associations. 2005-12-19 00:56:05 +00:00
mt_allocator.cc * src/mt_allocator.cc (__pool): Fix error in comment. 2008-08-27 10:42:39 +10:00
mutex.cc condition_variable: Use new deleted ctors. 2008-09-03 17:46:09 +00:00
ostream-inst.cc configure.ac: Allow both powerpc*-*-linux* and powerpc*-*-gnu* for long double compatibility. 2007-04-19 13:11:07 +01:00
parallel_list.cc types.h: Move enum parallelism here. 2008-02-15 22:55:14 +00:00
parallel_settings.cc re PR libstdc++/34797 ([parallel mode] Settings are separated for each compilation unit) 2008-02-18 00:00:00 +00:00
pool_allocator.cc atomicity.h: Move to... 2006-09-14 09:48:15 +00:00
sstream-inst.cc c++config: Add in revised namespace associations. 2005-12-19 00:56:05 +00:00
stdexcept.cc c++config: Add in revised namespace associations. 2005-12-19 00:56:05 +00:00
streambuf-inst.cc re PR libstdc++/26181 (istream::operator>>(streambuf*) fails to set eofbit) 2006-02-10 18:29:04 +00:00
streambuf.cc re PR libstdc++/26181 (istream::operator>>(streambuf*) fails to set eofbit) 2006-02-10 18:29:04 +00:00
string-inst.cc basic_string.tcc (find(const _CharT*, size_type, size_type)): Reimplement in terms of traits::eq and traits::compare. 2006-09-05 15:43:47 +00:00
strstream.cc Revert revision 120457. 2007-01-05 11:03:35 +11:00
system_error.cc system_error: Align to current draft specifications. 2008-05-16 21:55:00 +00:00
thread.cc thread: New. 2008-09-13 00:32:37 +00:00
tree.cc re PR c++/19564 (-Wparentheses does not work with the C++ front-end) 2006-12-14 05:49:06 +00:00
valarray-inst.cc valarray-inst.cc, [...]: Fix comment typos. 2007-10-01 21:49:39 +01:00
wlocale-inst.cc configure.ac (_GLIBCXX_LONG_DOUBLE_COMPAT): New check. 2006-02-07 22:23:58 +00:00
wstring-inst.cc All files: Update FSF address. 2005-08-17 02:28:44 +00:00