| 46 | } |
| 47 | |
| 48 | static void EnsureFrameCleanupTimer() |
| 49 | { |
| 50 | static boost::once_flag once = BOOST_ONCE_INIT; |
| 51 | |
| 52 | boost::call_once(once, []() { |
| 53 | l_FrameCleanupTimer = Timer::Create(); |
| 54 | l_FrameCleanupTimer->OnTimerExpired.connect([](const Timer * const&) { ScriptFrameCleanupHandler(); }); |
| 55 | l_FrameCleanupTimer->SetInterval(30); |
| 56 | l_FrameCleanupTimer->Start(); |
| 57 | }); |
| 58 | } |
| 59 | |
| 60 | static std::shared_ptr<ApiScriptFrame> GetOrCreateScriptFrame(const String& session) { |
| 61 | std::unique_lock<std::mutex> lock(l_ApiScriptMutex); |
no test coverage detected