summaryrefslogtreecommitdiff
path: root/zen/thread.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2016-03-16 21:34:59 +0100
committerDaniel Wilhelm <daniel@wili.li>2016-03-16 21:34:59 +0100
commit339ed7f63798fb5ccab05fa7fb9d0d95743c9c89 (patch)
tree214819f601b69bfd32507ca59047dd4d68ed5632 /zen/thread.h
parent7.9 (diff)
downloadFreeFileSync-339ed7f63798fb5ccab05fa7fb9d0d95743c9c89.tar.gz
FreeFileSync-339ed7f63798fb5ccab05fa7fb9d0d95743c9c89.tar.bz2
FreeFileSync-339ed7f63798fb5ccab05fa7fb9d0d95743c9c89.zip
8.0
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