diff options
| -rw-r--r-- | zen/chunk/chunk.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/zen/chunk/chunk.cpp b/zen/chunk/chunk.cpp index b6dc0c465..f7ee8275e 100644 --- a/zen/chunk/chunk.cpp +++ b/zen/chunk/chunk.cpp @@ -64,8 +64,15 @@ struct combinable struct task_group { - void run(...) {} - void wait() {} + template <class Function> + void run(const Function& Func) + { + Func(); + } + + void wait() + { + } }; } // namespace Concurrency |