From ebb83c66e225375212f8e82e6b1bd8d3e3eb8646 Mon Sep 17 00:00:00 2001 From: Yuqian Yang Date: Sun, 2 Nov 2025 21:49:27 +0800 Subject: Impl timer on SDL. --- include/cru/base/platform/unix/EventLoop.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/cru/base/platform') diff --git a/include/cru/base/platform/unix/EventLoop.h b/include/cru/base/platform/unix/EventLoop.h index b039cfbf..c7674a91 100644 --- a/include/cru/base/platform/unix/EventLoop.h +++ b/include/cru/base/platform/unix/EventLoop.h @@ -59,6 +59,10 @@ class UnixEventLoop : public Object { void QueueAction(std::function action); int Run(); + + /** + * Thread-safe. + */ void RequestQuit(int exit_code = 0); /** -- cgit v1.2.3