|
Boost : |
Subject: Re: [boost] [threadpool] draft n2276 - launch_in_pool
From: Oliver Kowalke (k-oli_at_[hidden])
Date: 2008-11-21 09:25:49
Hi Dean,
> // version 1
> template <ThreadPool pool_type, PackagedTask task_type>
> typename task_type::future_type launch_in_pool(task_type task,
> pool_type & pool) {
> pool.post(task);
> return task.get_future();
> }
sorry, but i don't see the benefit
Maybe some additional functions are required which create customized pool accessible over launch_in_pool. Singleton from Andrei Alexandrescu comes into my mind (tracks the order of creation/destruction of singletons) - a implementaion was announced some months ago in the mailing list.
regards,
Oliver
-- Sensationsangebot nur bis 30.11: GMX FreeDSL - Telefonanschluss + DSL für nur 16,37 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk