diff options
author | 2022-02-14 01:40:31 +1100 | |
---|---|---|
committer | 2022-02-14 01:40:31 +1100 | |
commit | bd7f27c6f258f4a2f2703bd5a250baf5131d3e8f (patch) | |
tree | 99bfefabaff86c6e365a093dd4d32a87d6583b16 /src/lib/util/notifier.h | |
parent | e4588d1f454e283d7df8c60be42641570928571f (diff) |
-emu/emumem.h: Hold onto memory cache handler change subscriptions.
-cpu/mips: Replaced a std::function with a marginally more efficient delegate.
Diffstat (limited to 'src/lib/util/notifier.h')
-rw-r--r-- | src/lib/util/notifier.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/util/notifier.h b/src/lib/util/notifier.h index b5dfaaa0f3c..237417e49ab 100644 --- a/src/lib/util/notifier.h +++ b/src/lib/util/notifier.h @@ -91,7 +91,7 @@ public: /// inactive if it is default constructed, reset, transferred away, /// or if the underlying notifier is destructed. /// \return True if the subscription is active, false otherwise. - explicit operator bool() const noexcept { return bool(m_token.lock()); } + explicit operator bool() const noexcept { return !m_token.expired(); } /// \brief Transfer ownership of a subscription /// |