Closed hanito closed 8 years ago
What do you mean? The example.cpp
shows hot to use the thread pool.
This should do it i think:
int foo(float x) { return x; }
//...
future<int> result = pool.enqueue(foo, 3.14f);
yes Prog I coded it before. For a class I should do the following:
IF i have a function bar in a class
int foo::bar(float x) { return x; }
//...
future
How can we add a function inside your code. IT's totally unclear