
"Peter Dimov" <pdimov@mmltd.net> 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