aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Ridgers <[email protected]>2022-01-11 10:22:55 +0100
committerMartin Ridgers <[email protected]>2022-01-11 10:34:30 +0100
commitac5adb5fb62158fa34b2d3be44465855b2cefeee (patch)
treec2edb47ae8dd3265787f9ca801a1c29d45577aa4
parentRequired linker frameworks on Mac for zenserver (diff)
downloadzen-ac5adb5fb62158fa34b2d3be44465855b2cefeee.tar.xz
zen-ac5adb5fb62158fa34b2d3be44465855b2cefeee.zip
Added an implementation of task_group::run() on POSIX
-rw-r--r--zen/chunk/chunk.cpp11
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