Rename LoadEvent member function reName to setName

This commit is contained in:
Joe Loser
2018-05-11 20:37:21 -06:00
committed by seelabs
parent 1c2b8417b9
commit f0cec3b2f1
3 changed files with 3 additions and 4 deletions

View File

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

View File

@@ -78,7 +78,7 @@ void Job::doJob ()
{
beast::setCurrentThreadName ("doJob: " + mName);
m_loadEvent->start ();
m_loadEvent->reName (mName);
m_loadEvent->setName (mName);
mJob (*this);

View File

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