Boost logo

Boost :

From: Anthony Williams (anthony_w.geo_at_[hidden])
Date: 2006-09-26 06:46:28


"Peter Dimov" <pdimov_at_[hidden]> writes:

> Roland Schwarz wrote:
>
>> I did this because in Peters code I see a small chance that TlsFree
>> could get into trouble. The on_process_exit could be called multiple
>> times. E.g. from userland code before end of main _and_ from the
>> tss callbacks. (Of course this could be easily cured by use of another
>> once call.)
>
> My original code didn't have TlsFree for this very reason. Anthony Williams
> added it, arguing that on_process_exit is guaranteed to be called once.

Indeed. Roland has done more work on this part of boost::threads than I, so I
defer to his knowledge, but I would like to understand why --- surely users
shouldn't be calling on_process_exit.

Anthony

-- 
Anthony Williams
Software Developer
Just Software Solutions Ltd
http://www.justsoftwaresolutions.co.uk

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