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.


View this message in context:
Sent from the Boost - Dev mailing list archive at

Boost list run by bdawes at, gregod at, cpdaniel at, john at