wait.cc (wait): Rename.

2010-05-19  Jonathan Wakely  <jwakely.gcc@gmail.com>

	* testsuite/30_threads/future/members/wait.cc (wait): Rename.
	* testsuite/30_threads/shared_future/members/wait.cc (wait): Likewise.

From-SVN: r159593
This commit is contained in:
Jonathan Wakely 2010-05-19 18:48:48 +00:00 committed by Jonathan Wakely
parent 616f1431bf
commit 9908949ca6
3 changed files with 11 additions and 6 deletions

View File

@ -1,3 +1,8 @@
2010-05-19 Jonathan Wakely <jwakely.gcc@gmail.com>
* testsuite/30_threads/future/members/wait.cc (wait): Rename.
* testsuite/30_threads/shared_future/members/wait.cc (wait): Likewise.
2010-05-18 Eelis van der Weegen <gcc-bugzilla@contacts.eelis.net>
PR libstdc++/44190

View File

@ -31,7 +31,7 @@
#include <testsuite_hooks.h>
void wait(std::future<void>& f)
void fut_wait(std::future<void>& f)
{
f.wait();
}
@ -41,7 +41,7 @@ void test01()
std::promise<void> p1;
std::future<void> f1(p1.get_future());
std::thread t1(wait, std::ref(f1));
std::thread t1(fut_wait, std::ref(f1));
p1.set_value();
t1.join();

View File

@ -29,7 +29,7 @@
#include <mutex>
#include <testsuite_hooks.h>
void wait(std::shared_future<void> f)
void fut_wait(std::shared_future<void> f)
{
f.wait();
}
@ -39,9 +39,9 @@ void test01()
std::promise<void> p1;
std::shared_future<void> f1(p1.get_future());
std::thread t1(wait, f1);
std::thread t2(wait, f1);
std::thread t3(wait, f1);
std::thread t1(fut_wait, f1);
std::thread t2(fut_wait, f1);
std::thread t3(fut_wait, f1);
p1.set_value();
t1.join();