|
Boost : |
From: vicente.botet (vicente.botet_at_[hidden])
Date: 2008-05-08 14:51:32
----- Original Message -----
From: "Darren Garvey" <darren.garvey_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Thursday, May 08, 2008 5:57 PM
Subject: Re: [boost] [thread] cache of initialized threads
> Hi vincent,
>
> 2008/5/8 vicente.botet <vicente.botet_at_[hidden]>:
>
>>
>> In addition a cached thread should behaves as much as possible as a
>> thread.
>> A thread_pool is much more a multi_task scheduler than a thread factory.
>>
>> Maybe a thread_pool with the needed policies can give the same result.
>> Why
>> not?
>> . Task type : provide the thread functionality
>> . Scheduling Policy : immediate (Synchronous)
>> . Size Policy creates a new one when no more available
>>
>> Do you know a thread_pool library allowing to implement the required
>> behaviour?
>>
>
> http://sourceforge.net/projects/threadpool
>
> It looks like it's still being maintained. I've never really used it for
> anything proper, but it seems to do some of the things you're looking for.
Thanks Darren,
I'll take a look to see if I can use it.
_____________________
Vicente Juan Botet Escriba
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk