The question is related to alleged disadvantage of std::thread
. Yesterday I was casually traversing the popular open source distributed proxy envoy by Lyft. When I was studying their threading portion i came across a comment which caught my eye. The comment says the following:
Wrapper for a pthread thread. We don't use std::thread because it eats exceptions and leads to unusable stack traces
I am not sure what does it mean by eats exception and unusable stack traces.
Can anybody explain what it means and why std::thread
results in a non reliable stack trace?