Skip to content

Commit

Permalink
core: improve variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
julianoes authored and mrpollo committed Sep 26, 2017
1 parent 65158e0 commit a9f2199
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions core/timeout_handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ void TimeoutHandler::refresh(const void *cookie)
}
}

void TimeoutHandler::update(double new_duration_s, const void *cookie)
void TimeoutHandler::update(double updated_duration_s, const void *cookie)
{
std::lock_guard<std::mutex> lock(_timeouts_mutex);

auto it = _timeouts.find((void *)(cookie));
if (it != _timeouts.end()) {
it->second->duration_s = new_duration_s;
it->second->duration_s = updated_duration_s;
}
}

Expand Down
2 changes: 1 addition & 1 deletion core/timeout_handler.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class TimeoutHandler

void add(std::function<void()> callback, double duration_s, void **cookie);
void refresh(const void *cookie);
void update(double new_duration_s, const void *cookie);
void update(double updated_duration_s, const void *cookie);
void remove(const void *cookie);

void run_once();
Expand Down

0 comments on commit a9f2199

Please sign in to comment.