Boost logo

Boost Users :

From: Josef Grahn (josef.grahn_at_[hidden])
Date: 2007-02-16 05:07:10


Hi!

What performance characteristics can be expected from a
thread_specific_ptr on various platforms, as compared to other
synchronizing primitives? Does accessing it cost the equivalent of
locking a mutex, or is it generally faster than that?

Specifically, would the cost of accessing it be noticeable if one were
to use it (naively) to manage detailed per-thread logging, generating
many thousands of access calls per second or more.

Thanks in advance!

Best regards,

Josef Grahn


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net