From: Roland (roland.schwarz_at_[hidden])
Date: 2004-07-29 02:56:29
On Thu, 29 Jul 2004 09:25:57 +0200 Johan Nilsson <johan.nilsson_at_[hidden]> wrote:
> Either I missed something (jumped into the discussion at about this point)
> or just don't understand, but why should TlsFree have to be called in the
> context of an exiting thread?
It is my fault. I was imprecise about TlsFree. Of course there is no need to
free the entire slot within the context of the exiting thread.
But nevertheless you will need thread context to free the thread specific
variable that is stored in your slot. Beeing on a different thread renders you
unable to access the data of the exiting thread (that is what TSS stands for),
and consequently you cannot free it.
Normally you store a null pointer in the slot after having it freed. This is what
I mistakenly called "TlsFree" which definitely is the wrong function in that case.
Thank you for pointing this out.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk