From: William E. Kempf (williamkempf_at_[hidden])
Date: 2002-08-22 16:33:13


From: "Rene Rivera" <grafik666_at_[hidden]>
> [2002-08-22] William E. Kempf wrote:
> >From: "Rene Rivera" <grafik666_at_[hidden]>
> >> Is there a way to have a thread_specific_ptr that doesn't "delete" the
> >> pointer when the thread exits?
> >
> >In the current release this can only be done by creating a wrapper,
> >unfortunately. The next revision addresses this, as well as a few other
> >issues, with thread_specific_ptr. I mostly want to apply these Rev2
> changes
> >in one go, so they can be properly reviewed, but thread_specific_ptr has
> >several things I'd almost consider bug fixes, so maybe I should apply
those
> >changes sooner?
>
> I guess I can use a handle for now. What other bugs are you refering to?
> Anything that impacts its current use significantly?

Normal usage can lead to "order of creation" issues. Mostly, though, I was
referring to the change that allows you to specify a cleanup handler (which
is what would allow you to not "delete" the pointer). You can look at the
differences in CVS.

Bill Kempf