fix IsEmpty is const
Some checks failed
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (push) Failing after 1m2s
linux-arm-gcc / linux-gcc-armhf (push) Failing after 38s
linux-mips64-gcc / linux-gcc-mips64el (Debug) (push) Failing after 1m9s
linux-mips64-gcc / linux-gcc-mips64el (Release) (push) Failing after 1m0s
linux-x64-gcc / linux-gcc (Debug) (push) Failing after 33s
linux-x64-gcc / linux-gcc (Release) (push) Failing after 49s

This commit is contained in:
Your Name 2024-12-05 15:27:31 +08:00
parent 1f8a250845
commit 97681c8807

View File

@ -80,7 +80,7 @@ public:
if (dispatcher.is_empty()) { signals_.erase(iter); } if (dispatcher.is_empty()) { signals_.erase(iter); }
} }
bool IsEmpty(EventBus *bus) const bool IsEmpty(EventBus *bus)
{ {
sled::SharedMutexReadLock lock(&shared_mutex_); sled::SharedMutexReadLock lock(&shared_mutex_);
auto iter = signals_.find(bus); auto iter = signals_.find(bus);