
5 Mar
2007
5 Mar
'07
12:45 p.m.
Johan Nilsson wrote:
Hi,
I don't know if this is a known bug or not:
When using thread_specific_ptr's, if at any time later in the program the total tss data items drops to zero, it is no longer possible to use tss data.
How can this happen in real code? thread_specific_ptr instances should always have static storage duration. The only legitimate situation appears to be to load and then unload a DLL that uses thread_specific_ptr.