diff options
author | Yuqian Yang <crupest@crupest.life> | 2025-09-07 21:57:02 +0800 |
---|---|---|
committer | Yuqian Yang <crupest@crupest.life> | 2025-09-07 21:57:02 +0800 |
commit | 0b5085db82c06b4dfd9d46dafeee8e3a3e4b21ce (patch) | |
tree | 3f6e90edcab270635aae9c6338490c78cee61b5a /include/cru/base | |
parent | 8465655ceac8e1f78e4af2224ed8b8839ec4a35e (diff) | |
download | cru-0b5085db82c06b4dfd9d46dafeee8e3a3e4b21ce.tar.gz cru-0b5085db82c06b4dfd9d46dafeee8e3a3e4b21ce.tar.bz2 cru-0b5085db82c06b4dfd9d46dafeee8e3a3e4b21ce.zip |
Base test for event loop.
Diffstat (limited to 'include/cru/base')
-rw-r--r-- | include/cru/base/platform/unix/EventLoop.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/cru/base/platform/unix/EventLoop.h b/include/cru/base/platform/unix/EventLoop.h index 9def8c7b..a3fac176 100644 --- a/include/cru/base/platform/unix/EventLoop.h +++ b/include/cru/base/platform/unix/EventLoop.h @@ -48,7 +48,6 @@ class UnixEventLoop : public Object2 { CRU_DEFINE_CLASS_LOG_TAG("cru::platform::unix::UnixEventLoop") public: UnixEventLoop(); - ~UnixEventLoop() override; int Run(); void RequestQuit(int exit_code = 0); @@ -97,7 +96,7 @@ class UnixEventLoop : public Object2 { void RemoveTimer(int id); private: - std::thread::id running_thread_; + std::optional<std::thread::id> running_thread_; std::vector<pollfd> polls_; std::vector< |