Re: [boost] Bug in Win32 implementation of thread_specific_ptr
(detail::tss::set)
by William E. Kempf other posts by this author
Jun 10 2002 6:52PM messages near this date
Re: [boost] Bug in Win32 implementation
ofthread_specific_ptr(detail::tss::set)
|
RE: [boost] Boost.threads: Setting stack size
----- Original Message -----
From: "Christof Meerwald" <cmeerw@[...].de>
To: <boost@[...].org>
Sent: Monday, June 10, 2002 10:31 AM
Subject: [boost] Bug in Win32 implementation of thread_specific_ptr
(detail::tss::set)
> Hi,
>
> currently, detail::tss::set doesn't remove the previously registered
> cleanup handler if the new value is a NULL pointer. So if you reset
> a thread_specific_pointer with a NULL pointer (or release it) and don't
> set any other value before the thread terminates, the initial pointer
> will be deleted twice (once by thread_specific_pointer::reset and again
> by the cleanup handler).
Thanks for the bug report. I actually discovered this myself a few weeks
ago while working on the next release. I'll check in the fix in CVS before
the next release.
Bill Kempf
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Thread:
Christof Meerwald
Mark Rodgers
William E. Kempf
William E. Kempf
|