Better unhandled exception handling:

Log thread name and exception type on unhandled exceptions and use a
terminate handler to get a stack trace that includes the function that
thows the exception.
This commit is contained in:
seelabs
2016-07-05 16:12:15 -04:00
parent c9d8fa9e96
commit 6f3a35e8be
11 changed files with 125 additions and 271 deletions

View File

@@ -160,10 +160,7 @@ void Workers::Worker::run ()
{
// Call runImpl() and report if any exceptions escape runImpl.
threadEntry (this, &Workers::Worker::runImpl,
"Workers::Worker::run()", [this] ()
{
return "Thread: " + Thread::getThreadName();
});
"Workers::Worker::run(); Thread: " + Thread::getThreadName());
}
void Workers::Worker::runImpl ()