diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:24:35 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:24:35 +0200 |
commit | 460091fb0b2ff114cc741372f15bb43b702ea3b1 (patch) | |
tree | 0562c2eda4c66969c6e6d0910080db9f5b0def3e /zen/async_task.h | |
parent | 5.15 (diff) | |
download | FreeFileSync-460091fb0b2ff114cc741372f15bb43b702ea3b1.tar.gz FreeFileSync-460091fb0b2ff114cc741372f15bb43b702ea3b1.tar.bz2 FreeFileSync-460091fb0b2ff114cc741372f15bb43b702ea3b1.zip |
5.16
Diffstat (limited to 'zen/async_task.h')
-rw-r--r-- | zen/async_task.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/zen/async_task.h b/zen/async_task.h index b4123b5d..c5e5857a 100644 --- a/zen/async_task.h +++ b/zen/async_task.h @@ -11,6 +11,7 @@ #include <functional> #include <zen/thread.h> #include <zen/scope_guard.h> +//#include "type_tools.h" namespace zen { @@ -34,7 +35,7 @@ public: } template <class Fun, class Fun2> - void add2(Fun doAsync, Fun2 evalOnGui) //for doAsync returning void + void add2(Fun doAsync, Fun2 evalOnGui) //for evalOnGui taking no parameters { tasks.push_back(zen::async([=]() -> std::function<void()> { doAsync(); return [=]{ evalOnGui(); }; })); } @@ -64,7 +65,6 @@ private: bool inRecursion; std::list<boost::unique_future<std::function<void()>>> tasks; }; - } #endif //ASYNC_JOB_839147839170432143214321 |