mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
Timer::TimerThreadProc(): use C++11 lambda instead of bind()
refs #6737 (cherry picked from commit 7a8f8fd7349269cb2e0e670b8d2a44693e5c07c7)
This commit is contained in:
parent
f551666a7d
commit
98d674f780
@ -327,6 +327,6 @@ void Timer::TimerThreadProc()
|
||||
lock.unlock();
|
||||
|
||||
/* Asynchronously call the timer. */
|
||||
Utility::QueueAsyncCallback(std::bind(&Timer::Call, timer));
|
||||
Utility::QueueAsyncCallback([timer]() { timer->Call(); });
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user