aboutsummaryrefslogtreecommitdiff
path: root/src/base/platform/unix/EventLoop.cpp
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-11-18 17:47:56 +0800
committerYuqian Yang <crupest@crupest.life>2025-11-18 18:11:19 +0800
commit73c55a65fc2d3200adab6a48ffc28c66bbf9159b (patch)
tree6df433746fd55ac4d786dea25fa0cddcc36a6349 /src/base/platform/unix/EventLoop.cpp
parent95587a99ffb2680532879b0470d3cbb3bf9e736f (diff)
downloadcru-73c55a65fc2d3200adab6a48ffc28c66bbf9159b.tar.gz
cru-73c55a65fc2d3200adab6a48ffc28c66bbf9159b.tar.bz2
cru-73c55a65fc2d3200adab6a48ffc28c66bbf9159b.zip
Impl DeleteLater on XcbUiApplication.
Diffstat (limited to 'src/base/platform/unix/EventLoop.cpp')
-rw-r--r--src/base/platform/unix/EventLoop.cpp3
1 files changed, 3 insertions, 0 deletions
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 <poll.h>
#include <algorithm>
@@ -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;