Boost logo

Threads-Devel :

From: Jonathan Biggar (jon_at_[hidden])
Date: 2007-07-27 12:00:15


Felipe Magno de Almeida wrote:
> Sorry replying to myself, but just after I sent the message I figured
> it isn't possible.
> The tss must have a unique identifier that is equal throughout all threads.
> It should be possible to use the tss address as a key to some sort of
> map/hash, where it would contain the value. It wouldn't be O(1), but
> having it growing unbounded is IMO, worse. At least for my use case.

TSS isn't designed to support hundreds or thousands of different thread
specific pointers.

You should refactor your application to have a single map accessed
through TSS to store all of that data.

-- 
Jon Biggar
Levanta
jon_at_[hidden]
650-403-7252

Threads-Devel list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk