diff options
| author | Yuqian Yang <crupest@crupest.life> | 2025-11-18 17:47:56 +0800 |
|---|---|---|
| committer | Yuqian Yang <crupest@crupest.life> | 2025-11-18 18:11:19 +0800 |
| commit | 73c55a65fc2d3200adab6a48ffc28c66bbf9159b (patch) | |
| tree | 6df433746fd55ac4d786dea25fa0cddcc36a6349 /src/base | |
| parent | 95587a99ffb2680532879b0470d3cbb3bf9e736f (diff) | |
| download | cru-73c55a65fc2d3200adab6a48ffc28c66bbf9159b.tar.gz cru-73c55a65fc2d3200adab6a48ffc28c66bbf9159b.tar.bz2 cru-73c55a65fc2d3200adab6a48ffc28c66bbf9159b.zip | |
Impl DeleteLater on XcbUiApplication.
Diffstat (limited to 'src/base')
| -rw-r--r-- | src/base/platform/unix/EventLoop.cpp | 3 |
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; |
