]> granicus.if.org Git - icinga2/commitdiff
Timer::TimerThreadProc(): use C++11 lambda instead of bind()
authorAlexander A. Klimov <alexander.klimov@icinga.com>
Mon, 11 Mar 2019 10:17:26 +0000 (11:17 +0100)
committerMichael Friedrich <michael.friedrich@icinga.com>
Thu, 16 May 2019 13:27:53 +0000 (15:27 +0200)
refs #6737

(cherry picked from commit 7a8f8fd7349269cb2e0e670b8d2a44693e5c07c7)

lib/base/timer.cpp

index 8feae797155309a03f335e1c7037dfdf2274140b..3d3dde7fdad4d7ea7ad3df5dc8fbfaf7129112c7 100644 (file)
@@ -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(); });
        }
 }