diff options
| author | Yuqian Yang <crupest@crupest.life> | 2025-11-02 21:49:27 +0800 |
|---|---|---|
| committer | Yuqian Yang <crupest@crupest.life> | 2025-11-06 18:22:51 +0800 |
| commit | ebb83c66e225375212f8e82e6b1bd8d3e3eb8646 (patch) | |
| tree | 44774c8303e105bce280eefad88d756ff2395984 /include/cru/base/platform/unix | |
| parent | a458ef365e3ace2e51e1bf0c2edefa5d02d032a8 (diff) | |
| download | cru-ebb83c66e225375212f8e82e6b1bd8d3e3eb8646.tar.gz cru-ebb83c66e225375212f8e82e6b1bd8d3e3eb8646.tar.bz2 cru-ebb83c66e225375212f8e82e6b1bd8d3e3eb8646.zip | |
Diffstat (limited to 'include/cru/base/platform/unix')
| -rw-r--r-- | include/cru/base/platform/unix/EventLoop.h | 4 |
1 files changed, 4 insertions, 0 deletions
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<void()> action); int Run(); + + /** + * Thread-safe. + */ void RequestQuit(int exit_code = 0); /** |
