aboutsummaryrefslogtreecommitdiff
path: root/src/base
diff options
context:
space:
mode:
Diffstat (limited to 'src/base')
-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;