Rename reportUncaughtExceptions to threadEntry

This commit is contained in:
seelabs
2016-07-05 14:48:37 -04:00
parent b72724a4a4
commit c9d8fa9e96
15 changed files with 40 additions and 40 deletions

View File

@@ -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()");
}

View File

@@ -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;

View File

@@ -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

View File

@@ -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();