c++ destruction order
Destruction order vs thread safety in C++