Boost logo

Boost :

From: William Kempf (williamkempf_at_[hidden])
Date: 2001-08-29 16:38:37


From: "Peter Dimov" <pdimov_at_[hidden]>
>From: "William Kempf" <williamkempf_at_[hidden]>
>> >If I understand the semantics of thread_specific_ptr correctly, the
storage
>> >is never deallocated; and I can't deallocate it explicitly because I
can't
>> >install a cleanup handler.
>>
>>You understand incorrectly ;). The storage for the threads are cleaned up
>>when the thread is destroyed through an implementation registered "cleanup
>>handler".
>
>I don't see this in thread_specific_ptr.html.

Quoted from the introduction in thread_specific_ptr.html:

"Template thread_specific_ptr stores a pointer to an object obtained via new
on a thread-by-thread basis and deletes the object when a thread
terminates."

Bill Kempf

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


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