
28 Jul
2004
28 Jul
'04
12:04 p.m.
Bronek Kozicki wrote:
Roland wrote:
You are relying on the fact that the c-runtime (with respect to this very thread) is still in a sane state! In fact it might not since the runtimes own detach functions already have been called at this time. (Happens within _endthread).
I saw your post and I think that's strong point *against* using thread local storage (as delivered by runtime and OS), and replace it with some structure.
Thread-local storage is to be used exactly in scenarios where such replacement is not possible.