diff options
author | redi <redi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-02-01 00:20:08 +0000 |
---|---|---|
committer | redi <redi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-02-01 00:20:08 +0000 |
commit | f7273180cc277a28a6779a21bfa5d5e878254c5f (patch) | |
tree | d40e1df5bc03aec565b5d676beb1c5e33137a6d8 /libstdc++-v3/ChangeLog | |
parent | 6993814636870405a2a40ee238928bc43e8cc02b (diff) | |
download | gcc-f7273180cc277a28a6779a21bfa5d5e878254c5f.tar.gz |
PR libstdc++/49204
* include/std/future (__future_base::_State_base::wait()): Use lambda
expression for predicate and remove redundant test.
(__future_base::_State_base::wait_for()): Return future_status and
use lambda expression for predicate.
(__future_base::_State_base::wait_until()): Likewise.
(__basic_future::wait_for(), __basic_future::wait_until()): Likewise.
(__future_base::_Async_state): Replace with _Async_state_common
class for non-dependent functionality and _Async_state_impl class
template for dependent functionality.
(__future_base::_Async_state_common::_M_join): Serialize attempts to
join thread.
(__future_base::_Async_state_common::_M_run_deferred): Join.
(__future_base::_Async_state::_M_do_run): Replace with lambda.
* src/c++11/future.cc (__future_base::_Async_state_common): Define
destructor, so key function is in the library.
* config/abi/pre/gnu.ver: Add exports for ~_Async_state_common.
* testsuite/30_threads/packaged_task/members/get_future.cc: Expect
future_status return instead of bool.
* testsuite/30_threads/shared_future/members/wait_until.cc: Likewise.
* testsuite/30_threads/shared_future/members/wait_for.cc: Likewise.
* testsuite/30_threads/future/members/wait_until.cc: Likewise.
* testsuite/30_threads/future/members/wait_for.cc: Likewise.
* testsuite/30_threads/promise/members/set_value2.cc: Likewise.
* testsuite/30_threads/promise/members/set_value3.cc: Likewise.
* testsuite/30_threads/promise/members/swap.cc: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183788 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/ChangeLog')
-rw-r--r-- | libstdc++-v3/ChangeLog | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 25359160ba7..038bf3ea69a 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,32 @@ +2012-02-01 Jonathan Wakely <jwakely.gcc@gmail.com> + + PR libstdc++/49204 + * include/std/future (__future_base::_State_base::wait()): Use lambda + expression for predicate and remove redundant test. + (__future_base::_State_base::wait_for()): Return future_status and + use lambda expression for predicate. + (__future_base::_State_base::wait_until()): Likewise. + (__basic_future::wait_for(), __basic_future::wait_until()): Likewise. + (__future_base::_Async_state): Replace with _Async_state_common + class for non-dependent functionality and _Async_state_impl class + template for dependent functionality. + (__future_base::_Async_state_common::_M_join): Serialize attempts to + join thread. + (__future_base::_Async_state_common::_M_run_deferred): Join. + (__future_base::_Async_state::_M_do_run): Replace with lambda. + * src/c++11/future.cc (__future_base::_Async_state_common): Define + destructor, so key function is in the library. + * config/abi/pre/gnu.ver: Add exports for ~_Async_state_common. + * testsuite/30_threads/packaged_task/members/get_future.cc: Expect + future_status return instead of bool. + * testsuite/30_threads/shared_future/members/wait_until.cc: Likewise. + * testsuite/30_threads/shared_future/members/wait_for.cc: Likewise. + * testsuite/30_threads/future/members/wait_until.cc: Likewise. + * testsuite/30_threads/future/members/wait_for.cc: Likewise. + * testsuite/30_threads/promise/members/set_value2.cc: Likewise. + * testsuite/30_threads/promise/members/set_value3.cc: Likewise. + * testsuite/30_threads/promise/members/swap.cc: Likewise. + 2012-01-30 Tom Tromey <tromey@redhat.com> PR libstdc++/51649: |