summaryrefslogtreecommitdiff
path: root/zen/thread.h
diff options
context:
space:
mode:
Diffstat (limited to 'zen/thread.h')
-rw-r--r--zen/thread.h4
1 files changed, 2 insertions, 2 deletions
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<class InputIterator, class Duration> 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;
}
bgstack15