36
Mutex poisoning is not for everyone
(bertptrs.nl)
Welcome to the Rust community! This is a place to discuss about the Rust programming language.
Credits
An unhandled exception in C++ causes the program to call std::terminate, which calls std::abort by default and brings down the entire program. I don't think there's a way to prevent an unhandled exception from doing that without causing nasal demons, but I could likewise be wrong. According to the standard, regarding the function function called by
std::terminate:A quick check suggests that GCC's
std::terminatecallsstd::abortif your terminate handler does not, but I don't know if that applies to other implementations.EDIT: If anyone else is curious, here is the GCC implementation:
The LLVM version does the same thing.