参考
https://stackoverflow.com/questions/22803600/when-should-i-use-stdthreaddetach
https://mzhan017.blog.youkuaiyun.com/article/details/121415629
实现
libstdc+±v3/libsupc++/eh_terminate.cc
void
__cxxabiv1::__terminate (std::terminate_handler handler) throw ()
{
__try