
12 Feb
2004
12 Feb
'04
7:56 a.m.
Matthew Hurd wrote:
The thread_group is a thread pool as you describe. Does this meet your requirements?
No. I meant special group of threads all ready to execute user function on demand. thread_pool th_pool(5); // 5 threads inside // Execute f and g in a thread from th_pool asynchronous_result<int> i = th_pool(f(1, 2, 3)); asynchronous_result<double> d = th_pool(g()); -- Alexander Nasonov Independent Developer and Consultant