summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/util/notifier.h
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2022-02-14 01:40:31 +1100
committer Vas Crabb <vas@vastheman.com>2022-02-14 01:40:31 +1100
commitbd7f27c6f258f4a2f2703bd5a250baf5131d3e8f (patch)
tree99bfefabaff86c6e365a093dd4d32a87d6583b16 /src/lib/util/notifier.h
parente4588d1f454e283d7df8c60be42641570928571f (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.h2
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
///