mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-27 07:34:15 +02:00
Timer::TimerThreadProc(): use C++11 lambda instead of bind()
refs #6737
This commit is contained in:
parent
f747e6b405
commit
7a8f8fd734
@ -310,6 +310,6 @@ void Timer::TimerThreadProc()
|
|||||||
lock.unlock();
|
lock.unlock();
|
||||||
|
|
||||||
/* Asynchronously call the timer. */
|
/* 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