Skip to content

Commit

Permalink
Timer::TimerThreadProc(): use C++11 lambda instead of bind()
Browse files Browse the repository at this point in the history
refs #6737
  • Loading branch information
Al2Klimov committed Apr 18, 2019
1 parent 4339240 commit 6469529
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/base/timer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,6 @@ void Timer::TimerThreadProc()
lock.unlock();

/* Asynchronously call the timer. */
Utility::QueueAsyncCallback(std::bind(&Timer::Call, ptimer));
Utility::QueueAsyncCallback([ptimer]() { ptimer->Call(); });
}
}

0 comments on commit 6469529

Please sign in to comment.