Boost logo

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

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, gregod at, cpdaniel at, john at