Boost logo

Boost :

From: Johan Torp (johan.torp_at_[hidden])
Date: 2008-06-06 17:35:10


Peter Dimov-5 wrote:
>
>> In a previous post you said "Limiting the reuse to pool threads
>> eliminates
>> most other (theoretical IMO)
>> problems.". What theoretical problems has been identified with thread
>> re-use?
>
> "State" leaking from one thread to another via thread-local variables,
> thread priority, or thread stack size.
>

Given that thread's stack size can be increased for worker threads, these
problems doesn't seem to justify the complexity of the explicit yielding I
proposed. It has another benefit though, you can implement "thread reuse"
without exposing the future::set_wait_callback function.

Johan

-- 
View this message in context: http://www.nabble.com/-thread-pool-futures--Explicit-yielding-tp17606225p17701580.html
Sent from the Boost - Dev mailing list archive at Nabble.com.

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk