Hello to all.
Currently cxxtools::ThreadPool accepts only callable function/objects which
type is void and has no parameters.
I think it would be very useful if it was enough generic to support other
of callable objects.
It would be something like
ThreadPool<void(int,string)> pool(10);
Or
ThreadPool<void,int,string> pool(10);
So I could call:
pool.schedule(Function(do_something,20,"abcde"));
Does anyone else think it would be useful?
Thanks in advance.
--
Sent from my mind
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general