[wx-dev] wxThread, thread local storage and wxLog

Armel Asselin asselin.armel at wanadoo.fr
Fri Aug 11 03:18:56 PDT 2006


> AA> i've got an implementation problem with the one system slot per
> AA> wxThreadSpecificData on Windows.
>
> Surely you mean "one slot per all wxThreadSpecificData instances".
yes that's what I mean.

> AA> there is no way to tell to Windows to auto-delete object on thread
> AA> termination (pthread have though)
>
> What's wrong with doing it from wxThread::Exit()?
without a list of wxThreadSpecificData instances, I do not know at all which 
to delete during wxThread::Exit

I suspect also that wxThread::Exit won't be called for a thread created by 
another application when embedding a wx dll.
so I must use a static wxThreadSpecificData::Cleanup ( ) call instead.

Armel





More information about the wx-dev mailing list