mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-11 14:45:52 +00:00
Rename LoadEvent member function reName to setName
This commit is contained in:
@@ -55,8 +55,7 @@ public:
|
||||
std::chrono::steady_clock::duration
|
||||
runTime() const;
|
||||
|
||||
// VFALCO TODO rename this to setName () or setLabel ()
|
||||
void reName (std::string const& name);
|
||||
void setName (std::string const& name);
|
||||
|
||||
// Start the measurement. If already started, then
|
||||
// restart, assigning the elapsed time to the "waiting"
|
||||
|
||||
@@ -78,7 +78,7 @@ void Job::doJob ()
|
||||
{
|
||||
beast::setCurrentThreadName ("doJob: " + mName);
|
||||
m_loadEvent->start ();
|
||||
m_loadEvent->reName (mName);
|
||||
m_loadEvent->setName (mName);
|
||||
|
||||
mJob (*this);
|
||||
|
||||
|
||||
@@ -60,7 +60,7 @@ LoadEvent::runTime() const
|
||||
return timeRunning_;
|
||||
}
|
||||
|
||||
void LoadEvent::reName (std::string const& name)
|
||||
void LoadEvent::setName (std::string const& name)
|
||||
{
|
||||
name_ = name;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user