mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-26 14:05:51 +00:00
Log uncaught exceptions at the top of threads (RIPD-1166)
This commit is contained in:
committed by
Nik Bougalis
parent
7295d7f4bb
commit
fdd1f2ec36
@@ -22,6 +22,7 @@
|
||||
#include <ripple/resource/impl/Logic.h>
|
||||
#include <ripple/basics/chrono.h>
|
||||
#include <ripple/basics/Log.h>
|
||||
#include <ripple/core/ReportUncaughtException.h>
|
||||
#include <ripple/beast/core/Thread.h>
|
||||
#include <condition_variable>
|
||||
#include <memory>
|
||||
@@ -112,6 +113,12 @@ public:
|
||||
|
||||
private:
|
||||
void run ()
|
||||
{
|
||||
reportUncaughtException (
|
||||
this, &ManagerImp::runImpl, "Resource::Manager::run()");
|
||||
}
|
||||
|
||||
void runImpl ()
|
||||
{
|
||||
beast::Thread::setCurrentThreadName ("Resource::Manager");
|
||||
for(;;)
|
||||
|
||||
Reference in New Issue
Block a user