diff options
author | redi <redi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-05-28 00:24:11 +0000 |
---|---|---|
committer | redi <redi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-05-28 00:24:11 +0000 |
commit | 92599a34efa54b8b2eb47b096f2f1ecd956dc2d7 (patch) | |
tree | 82a61794458d0c99d6e8e6208bfc9651ec48894d /libstdc++-v3/testsuite/30_threads/async/sync.cc | |
parent | bf1649e36382e0f1f22ff35a9867819c34e3c081 (diff) | |
download | gcc-92599a34efa54b8b2eb47b096f2f1ecd956dc2d7.tar.gz |
2011-05-28 Jonathan Wakely <jwakely.gcc@gmail.com>
* include/std/future (launch): Update enumerators and define
operators required for bitmask type. Remove trailing whitespace.
* src/future.cc: Remove trailing whitespace.
* testsuite/30_threads/async/any.cc: Adjust.
* testsuite/30_threads/async/sync.cc: Adjust.
* testsuite/30_threads/async/launch.cc: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174374 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/testsuite/30_threads/async/sync.cc')
-rw-r--r-- | libstdc++-v3/testsuite/30_threads/async/sync.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libstdc++-v3/testsuite/30_threads/async/sync.cc b/libstdc++-v3/testsuite/30_threads/async/sync.cc index f1d13773773..1daf01238a2 100644 --- a/libstdc++-v3/testsuite/30_threads/async/sync.cc +++ b/libstdc++-v3/testsuite/30_threads/async/sync.cc @@ -6,7 +6,7 @@ // { dg-require-gthreads "" } // { dg-require-atomic-builtins "" } -// Copyright (C) 2010 Free Software Foundation, Inc. +// Copyright (C) 2010, 2011 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -41,7 +41,7 @@ void test01() int a = 1; int b = 10; int c = 100; - future<int> f1 = async(launch::sync, sum(), a, ref(b), cref(c)); + future<int> f1 = async(launch::deferred, sum(), a, ref(b), cref(c)); VERIFY( f1.valid() ); VERIFY( f1.get() == 111 ); |