Boost logo

Boost :

From: Michael Glassford (glassfordm_at_[hidden])
Date: 2004-06-03 09:17:13


"Peter Danford" <pdanford_qed_at_[hidden]> wrote in message
news:20040603032735.71640.qmail_at_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


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