summaryrefslogtreecommitdiff
path: root/libstdc++-v3/testsuite/performance
diff options
context:
space:
mode:
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>2012-04-11 20:31:06 +0000
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>2012-04-11 20:31:06 +0000
commitca0fdaa4d9835d8940a849588f86e71c97439874 (patch)
treee51ea7bf026cb14bad7858e2bd9554420967510c /libstdc++-v3/testsuite/performance
parentca3d1b330a873fd6c98f42091bde1475b926fe0e (diff)
downloadgcc-ca0fdaa4d9835d8940a849588f86e71c97439874.tar.gz
* testsuite/performance/30_threads/future/polling.cc: Adjust.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186354 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/testsuite/performance')
-rw-r--r--libstdc++-v3/testsuite/performance/30_threads/future/polling.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/libstdc++-v3/testsuite/performance/30_threads/future/polling.cc b/libstdc++-v3/testsuite/performance/30_threads/future/polling.cc
index 83fde27100f..26cf632e429 100644
--- a/libstdc++-v3/testsuite/performance/30_threads/future/polling.cc
+++ b/libstdc++-v3/testsuite/performance/30_threads/future/polling.cc
@@ -1,4 +1,4 @@
-// Copyright (C) 2009, 2010 Free Software Foundation, Inc.
+// Copyright (C) 2009, 2010, 2012 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
@@ -22,7 +22,7 @@
inline bool is_ready(std::shared_future<void>& f)
{
- return f.wait_for(std::chrono::microseconds(1));
+ return f.wait_for(std::chrono::microseconds(1)) == std::future_status::ready;
}
void poll(std::shared_future<void> f)