Skip to content

Commit

Permalink
Rename LoadEvent member function reName to setName
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeLoser authored and seelabs committed Jun 1, 2018
1 parent 1c2b841 commit f0cec3b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/ripple/core/LoadEvent.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ class LoadEvent
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"
Expand Down
2 changes: 1 addition & 1 deletion src/ripple/core/impl/Job.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ void Job::doJob ()
{
beast::setCurrentThreadName ("doJob: " + mName);
m_loadEvent->start ();
m_loadEvent->reName (mName);
m_loadEvent->setName (mName);

mJob (*this);

Expand Down
2 changes: 1 addition & 1 deletion src/ripple/core/impl/LoadEvent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit f0cec3b

Please sign in to comment.