summaryrefslogtreecommitdiff
path: root/zen/thread.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2015-10-02 14:52:04 +0200
committerDaniel Wilhelm <daniel@wili.li>2015-10-02 14:52:04 +0200
commit1845c028b8cb8496d1d78f0da738120e1c31401a (patch)
treeadf9fb436aea09be367aef8ed3b6cdbf6a46e34c /zen/thread.h
parent6.7 (diff)
downloadFreeFileSync-1845c028b8cb8496d1d78f0da738120e1c31401a.tar.gz
FreeFileSync-1845c028b8cb8496d1d78f0da738120e1c31401a.tar.bz2
FreeFileSync-1845c028b8cb8496d1d78f0da738120e1c31401a.zip
6.8
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 d74eaa5b..8c72e43f 100644
--- a/zen/thread.h
+++ b/zen/thread.h
@@ -43,8 +43,8 @@ std::async replacement without crappy semantics:
2. does not follow C++11 [futures.async], Paragraph 5, where std::future waits for thread in destructor
Example:
- Zstring dirname = ...
- auto ft = zen::async([=](){ return zen::dirExists(dirname); });
+ Zstring dirpath = ...
+ auto ft = zen::async([=](){ return zen::dirExists(dirpath); });
if (ft.timed_wait(boost::posix_time::milliseconds(200)) && ft.get())
//dir exising
*/
bgstack15