Adding better implementation note
This commit is contained in:
@@ -8,6 +8,14 @@
|
|||||||
#include <future>
|
#include <future>
|
||||||
#include <deque>
|
#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 {
|
namespace daggy {
|
||||||
using AsyncTask = std::function<void()>;
|
using AsyncTask = std::function<void()>;
|
||||||
class ThreadPool {
|
class ThreadPool {
|
||||||
|
|||||||
Reference in New Issue
Block a user