
"Peter Danford" <pdanford_qed@yahoo.com> wrote in message news:20040603032735.71640.qmail@web60601.mail.yahoo.com...
By introducing the tss into the thread implementation mentioned below, are we gaining functionality so useful it outweighs the benefit realized by having a static option available?
I think so. Here's a quote from a previous post I made on the subject: "The reasons [for using tss in the thread class's implementation] are two-fold: 1) The thread class becomes a handle class that holds a reference-counted pointer to a thread_data class. When a thread class is created, it gets access to the thread_data class for the thread using TLS. 2) As you might guess from the name of the thread_data class, there is other information associated with each thread; for instance, a thread id, a flag indicating whether the thread has been cancelled (yes, there is an exception-based implementation of thread cancellation), etc." Mike