Adding better implementation note

This commit is contained in:
Ian Roddis
2021-06-20 10:34:48 -03:00
parent 209ec6f380
commit 60cab3d5e0

View File

@@ -8,6 +8,14 @@
#include <future>
#include <deque>
/*
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<void()>;
class ThreadPool {