mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Rename reportUncaughtExceptions to threadEntry
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
|
||||
#include <BeastConfig.h>
|
||||
#include <ripple/core/DeadlineTimer.h>
|
||||
#include <ripple/core/ReportUncaughtException.h>
|
||||
#include <ripple/core/ThreadEntry.h>
|
||||
#include <ripple/beast/core/Thread.h>
|
||||
#include <algorithm>
|
||||
#include <cassert>
|
||||
@@ -100,7 +100,7 @@ public:
|
||||
|
||||
void run () override
|
||||
{
|
||||
reportUncaughtException (
|
||||
threadEntry (
|
||||
this, &Manager::runImpl, "DeadlineTimer::Manager::run()");
|
||||
}
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
#include <BeastConfig.h>
|
||||
#include <ripple/core/Job.h>
|
||||
#include <ripple/core/ReportUncaughtException.h>
|
||||
#include <ripple/core/ThreadEntry.h>
|
||||
#include <cassert>
|
||||
|
||||
namespace ripple {
|
||||
@@ -77,7 +77,7 @@ bool Job::shouldCancel () const
|
||||
|
||||
void Job::doJob ()
|
||||
{
|
||||
reportUncaughtException (this, &Job::doJobImpl, "Job::doJob()",
|
||||
threadEntry (this, &Job::doJobImpl, "Job::doJob()",
|
||||
[this] ()
|
||||
{
|
||||
std::stringstream ss;
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
#include <ripple/basics/ThreadName.h>
|
||||
#include <ripple/basics/random.h>
|
||||
#include <ripple/beast/core/Thread.h>
|
||||
#include <ripple/core/ReportUncaughtException.h>
|
||||
#include <ripple/core/ThreadEntry.h>
|
||||
#include <beast/core/placeholders.hpp>
|
||||
#include <boost/asio.hpp>
|
||||
#include <boost/optional.hpp>
|
||||
@@ -209,7 +209,7 @@ public:
|
||||
using Pio_service_mem = std::size_t (boost::asio::io_service::*)();
|
||||
Pio_service_mem pRun = &boost::asio::io_service::run;
|
||||
|
||||
reportUncaughtException (&io_service_, pRun, "SNTPClientImp::doRun()");
|
||||
threadEntry (&io_service_, pRun, "SNTPClientImp::doRun()");
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
//==============================================================================
|
||||
|
||||
#include <ripple/core/impl/Workers.h>
|
||||
#include <ripple/core/ReportUncaughtException.h>
|
||||
#include <ripple/core/ThreadEntry.h>
|
||||
#include <ripple/beast/unit_test.h>
|
||||
#include <cassert>
|
||||
|
||||
@@ -159,7 +159,7 @@ Workers::Worker::~Worker ()
|
||||
void Workers::Worker::run ()
|
||||
{
|
||||
// Call runImpl() and report if any exceptions escape runImpl.
|
||||
reportUncaughtException (this, &Workers::Worker::runImpl,
|
||||
threadEntry (this, &Workers::Worker::runImpl,
|
||||
"Workers::Worker::run()", [this] ()
|
||||
{
|
||||
return "Thread: " + Thread::getThreadName();
|
||||
|
||||
Reference in New Issue
Block a user