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

@@ -23,6 +23,7 @@
#include <ripple/app/misc/NetworkOPs.h>
#include <ripple/basics/UptimeTimer.h>
#include <ripple/core/LoadFeeTrack.h>
#include <ripple/core/ReportUncaughtException.h>
#include <ripple/json/to_string.h>
#include <ripple/beast/core/Thread.h>
#include <memory>
@@ -106,6 +107,11 @@ void LoadManager::onStop ()
//------------------------------------------------------------------------------
void LoadManager::run ()
{
reportUncaughtException (this, &LoadManager::runImpl, "LoadManager::run()");
}
void LoadManager::runImpl ()
{
beast::Thread::setCurrentThreadName ("LoadManager");