From 339ed7f63798fb5ccab05fa7fb9d0d95743c9c89 Mon Sep 17 00:00:00 2001 From: Daniel Wilhelm Date: Wed, 16 Mar 2016 21:34:59 +0100 Subject: 8.0 --- zen/thread.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'zen/thread.h') diff --git a/zen/thread.h b/zen/thread.h index 700d42dc..f747f965 100644 --- a/zen/thread.h +++ b/zen/thread.h @@ -181,9 +181,9 @@ auto runAsync(Function&& fun) template inline bool wait_for_all_timed(InputIterator first, InputIterator last, const Duration& duration) { - const std::chrono::steady_clock::time_point endTime = std::chrono::steady_clock::now() + duration; + const std::chrono::steady_clock::time_point stopTime = std::chrono::steady_clock::now() + duration; for (; first != last; ++first) - if (first->wait_until(endTime) != std::future_status::ready) + if (first->wait_until(stopTime) != std::future_status::ready) return false; //time elapsed return true; } -- cgit