From 73c55a65fc2d3200adab6a48ffc28c66bbf9159b Mon Sep 17 00:00:00 2001 From: Yuqian Yang Date: Tue, 18 Nov 2025 17:47:56 +0800 Subject: Impl DeleteLater on XcbUiApplication. --- src/base/platform/unix/EventLoop.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/base/platform/unix/EventLoop.cpp') diff --git a/src/base/platform/unix/EventLoop.cpp b/src/base/platform/unix/EventLoop.cpp index 6c43213f..ebf84753 100644 --- a/src/base/platform/unix/EventLoop.cpp +++ b/src/base/platform/unix/EventLoop.cpp @@ -1,4 +1,5 @@ #include "cru/base/platform/unix/EventLoop.h" +#include "cru/base/Guard.h" #include #include @@ -32,6 +33,8 @@ int UnixEventLoop::Run() { while (!exit_code_) { int poll_timeout = -1; + Guard after_each_round_event_guard( + [this] { AfterEachRoundEvent_.Raise(nullptr); }); if (CheckPoll()) { continue; -- cgit v1.2.3