|
Boost : |
From: Alexander Nasonov (alnsn-mycop_at_[hidden])
Date: 2004-02-12 02:56:44
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
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk