mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-05 09:46:53 +00:00
style: More clang-tidy identifier renaming (#7290)
This commit is contained in:
@@ -108,7 +108,7 @@ public:
|
||||
|
||||
beast::Journal journal;
|
||||
|
||||
boost::asio::io_context& io_context;
|
||||
boost::asio::io_context& ioContext;
|
||||
boost::asio::strand<boost::asio::io_context::executor_type> strand;
|
||||
boost::asio::ip::tcp::resolver resolver;
|
||||
|
||||
@@ -116,7 +116,7 @@ public:
|
||||
std::mutex mut;
|
||||
bool asyncHandlersCompleted{true};
|
||||
|
||||
std::atomic<bool> stop_called;
|
||||
std::atomic<bool> stopCalled;
|
||||
std::atomic<bool> stopped;
|
||||
|
||||
// Represents a unit of work for the resolver to do
|
||||
@@ -138,10 +138,10 @@ public:
|
||||
|
||||
ResolverAsioImpl(boost::asio::io_context& ioContext, beast::Journal journal)
|
||||
: journal(journal)
|
||||
, io_context(ioContext)
|
||||
, ioContext(ioContext)
|
||||
, strand(boost::asio::make_strand(ioContext))
|
||||
, resolver(ioContext)
|
||||
, stop_called(false)
|
||||
, stopCalled(false)
|
||||
, stopped(true)
|
||||
{
|
||||
}
|
||||
@@ -172,7 +172,7 @@ public:
|
||||
start() override
|
||||
{
|
||||
XRPL_ASSERT(stopped == true, "xrpl::ResolverAsioImpl::start : stopped");
|
||||
XRPL_ASSERT(stop_called == false, "xrpl::ResolverAsioImpl::start : not stopping");
|
||||
XRPL_ASSERT(stopCalled == false, "xrpl::ResolverAsioImpl::start : not stopping");
|
||||
|
||||
if (stopped.exchange(false))
|
||||
{
|
||||
@@ -187,10 +187,10 @@ public:
|
||||
void
|
||||
stopAsync() override
|
||||
{
|
||||
if (!stop_called.exchange(true))
|
||||
if (!stopCalled.exchange(true))
|
||||
{
|
||||
boost::asio::dispatch(
|
||||
io_context,
|
||||
ioContext,
|
||||
boost::asio::bind_executor(
|
||||
strand, std::bind(&ResolverAsioImpl::doStop, this, CompletionCounter(this))));
|
||||
|
||||
@@ -213,13 +213,13 @@ public:
|
||||
void
|
||||
resolve(std::vector<std::string> const& names, HandlerType const& handler) override
|
||||
{
|
||||
XRPL_ASSERT(stop_called == false, "xrpl::ResolverAsioImpl::resolve : not stopping");
|
||||
XRPL_ASSERT(stopCalled == false, "xrpl::ResolverAsioImpl::resolve : not stopping");
|
||||
XRPL_ASSERT(!names.empty(), "xrpl::ResolverAsioImpl::resolve : names non-empty");
|
||||
|
||||
// TODO NIKB use rvalue references to construct and move
|
||||
// reducing cost.
|
||||
boost::asio::dispatch(
|
||||
io_context,
|
||||
ioContext,
|
||||
boost::asio::bind_executor(
|
||||
strand,
|
||||
std::bind(
|
||||
@@ -231,7 +231,7 @@ public:
|
||||
void
|
||||
doStop(CompletionCounter)
|
||||
{
|
||||
XRPL_ASSERT(stop_called == true, "xrpl::ResolverAsioImpl::doStop : stopping");
|
||||
XRPL_ASSERT(stopCalled == true, "xrpl::ResolverAsioImpl::doStop : stopping");
|
||||
|
||||
if (!stopped.exchange(true))
|
||||
{
|
||||
@@ -270,7 +270,7 @@ public:
|
||||
handler(name, addresses);
|
||||
|
||||
boost::asio::post(
|
||||
io_context,
|
||||
ioContext,
|
||||
boost::asio::bind_executor(
|
||||
strand, std::bind(&ResolverAsioImpl::doWork, this, CompletionCounter(this))));
|
||||
}
|
||||
@@ -324,7 +324,7 @@ public:
|
||||
void
|
||||
doWork(CompletionCounter)
|
||||
{
|
||||
if (stop_called)
|
||||
if (stopCalled)
|
||||
return;
|
||||
|
||||
// We don't have any work to do at this time
|
||||
@@ -346,7 +346,7 @@ public:
|
||||
JLOG(journal.error()) << "Unable to parse '" << name << "'";
|
||||
|
||||
boost::asio::post(
|
||||
io_context,
|
||||
ioContext,
|
||||
boost::asio::bind_executor(
|
||||
strand, std::bind(&ResolverAsioImpl::doWork, this, CompletionCounter(this))));
|
||||
|
||||
@@ -371,7 +371,7 @@ public:
|
||||
{
|
||||
XRPL_ASSERT(!names.empty(), "xrpl::ResolverAsioImpl::doResolve : names non-empty");
|
||||
|
||||
if (!stop_called)
|
||||
if (!stopCalled)
|
||||
{
|
||||
work.emplace_back(names, handler);
|
||||
|
||||
@@ -381,7 +381,7 @@ public:
|
||||
if (!work.empty())
|
||||
{
|
||||
boost::asio::post(
|
||||
io_context,
|
||||
ioContext,
|
||||
boost::asio::bind_executor(
|
||||
strand,
|
||||
std::bind(&ResolverAsioImpl::doWork, this, CompletionCounter(this))));
|
||||
|
||||
Reference in New Issue
Block a user