Boost logo

Boost :

From: Jason Hise (chaos_at_[hidden])
Date: 2005-09-13 11:46:22


I think it would be safe to create the mutex as a global variable, with
the documented requirement that the program not spawn any threads until
after it enters main. Quick question though: Are global variables
destroyed only when the last thread exits (ensuring that the point of
destruction of all globals is atomic), or do they die when the main
thread exits?

-Jason


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