Boost logo

Boost :

From: William E. Kempf (williamkempf_at_[hidden])
Date: 2002-06-10 13:52:33


----- Original Message -----
From: "Christof Meerwald" <cmeerw_at_[hidden]>
To: <boost_at_[hidden]>
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


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