
28 Jul
2004
28 Jul
'04
3:22 a.m.
Tonko Juricic wrote:
Leaning toward "less code is better" philosophy I would tend to take a position : you are not using boost threads? Then it's yours, rather than boost code responsibility, to clean up TLS.
That's often impossible: objects and threads are orthogonal by nature: you don't always control what thread executes your code. But as it is your code that needs TLS you may have to inject TLS variables in *any* thread that comes your way, and so it has to be cleaned up in a uniform way. Stefan