Boost logo

Boost :

From: Michael Glassford (glassfordm_at_[hidden])
Date: 2004-08-06 10:31:08


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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk