
6 Aug
2004
6 Aug
'04
3:31 p.m.
Roland wrote:
Dear Mike,
could you please give me the reasoning why the cleanup handlers that are specified in at_thread_exit must be serialized?
They don't; the mutex is to protect access to other global variables. Most of them were experimental and have been eliminated, but there's still one important one left: tls_key.
It turns out that this is caused by a mutex located in on_thread_exit. Essentially this prohibits more than an exit handler chain to run at the same time. While there might be sound reasons for this I'd like to know please.
I've adjusted the area where the mutex is locked to fix this problem. Mike