* testsuite/performance/30_threads/future/polling.cc: Adjust.

From-SVN: r186360
This commit is contained in:
Jonathan Wakely 2012-04-11 21:47:44 +00:00 committed by Jonathan Wakely
parent f8692937d0
commit 6cbc120965
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2012-04-11 Jonathan Wakely <jwakely.gcc@gmail.com>
* testsuite/performance/30_threads/future/polling.cc: Adjust.
2012-04-11 Jonathan Wakely <jwakely.gcc@gmail.com>
PR libstdc++/52591

View File

@ -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)