|
Boost : |
From: Roland (roland.schwarz_at_[hidden])
Date: 2004-07-28 01:31:54
On Tue, 27 Jul 2004 01:04:32 -0700 Dayton <mvglen04-cnews_at_[hidden]> wrote:
> Another advantage of modelling a thread as instance of a class rather
> than just a function is that you may elect to implement thread-specific
> variables as thread class members.
I don't think so. The purpose of TSS variables is to be global to your namespace.
Member variables are not. To access them you would need some pointer,
possibly declared globally. To access this pointer in turn one again needs to
resort to TSS.
Roland
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk