Subject: Re: [boost] [threadpool] new version v12
From: Anthony Williams (anthony.ajw_at_[hidden])
Date: 2008-11-03 09:32:31
"vicente.botet" <vicente.botet_at_[hidden]> writes:
>>> I don't see any major issue to migrate tasks when the blocking
>>> function get() calls recursivelly to the working thread scheduler. Is
>>> there one?
>> If the task migrates across threads its ID changes, and thread locals
> So if the task do not depends on thread specific this is safe.
In principle, yes. It depends on to what extent the CRT uses
-- Anthony Williams Author of C++ Concurrency in Action | http://www.manning.com/williams Custom Software Development | http://www.justsoftwaresolutions.co.uk Just Software Solutions Ltd, Registered in England, Company Number 5478976. Registered Office: 15 Carrallack Mews, St Just, Cornwall, TR19 7UL, UK
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk