From 60cab3d5e09135a535be48ed5ad86fd66184a25e Mon Sep 17 00:00:00 2001 From: Ian Roddis Date: Sun, 20 Jun 2021 10:34:48 -0300 Subject: [PATCH] Adding better implementation note --- daggy/include/daggy/ThreadPool.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/daggy/include/daggy/ThreadPool.hpp b/daggy/include/daggy/ThreadPool.hpp index a6bd1fc..6ed7a30 100644 --- a/daggy/include/daggy/ThreadPool.hpp +++ b/daggy/include/daggy/ThreadPool.hpp @@ -8,6 +8,14 @@ #include #include +/* +TODO: There's probably a better implementation of this at + + https://github.com/vit-vit/CTPL/blob/master/ctpl_stl.h + + but for now assume that all work is done using closures. +*/ + namespace daggy { using AsyncTask = std::function; class ThreadPool {