Log uncaught exceptions at the top of threads (RIPD-1166)

This commit is contained in:
Scott Schurr
2016-05-25 19:13:34 -07:00
committed by Nik Bougalis
parent 7295d7f4bb
commit fdd1f2ec36
21 changed files with 452 additions and 21 deletions

View File

@@ -19,6 +19,7 @@
#include <BeastConfig.h>
#include <ripple/core/DeadlineTimer.h>
#include <ripple/core/ReportUncaughtException.h>
#include <ripple/beast/core/Thread.h>
#include <algorithm>
#include <cassert>
@@ -97,7 +98,13 @@ public:
}
}
void run ()
void run () override
{
reportUncaughtException (
this, &Manager::runImpl, "DeadlineTimer::Manager::run()");
}
void runImpl ()
{
while (! threadShouldExit ())
{