22 Apr
2007
22 Apr
'07
4:19 p.m.
Johan Nilsson wrote:
In a longer perspective I suggest that the on_thread_exit call for the main thread to be called later point in deinitialization (always after the static object destruction, at least the user supplied ones).
I agree with Johan. Destroying the thread local objects prematurely is a recipe for trouble. It creates more problems than it solves.