summaryrefslogtreecommitdiffstats
path: root/src/server/Context.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/Context.hpp')
-rw-r--r--src/server/Context.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/server/Context.hpp b/src/server/Context.hpp
index 62bcfba9..b5941dfc 100644
--- a/src/server/Context.hpp
+++ b/src/server/Context.hpp
@@ -64,6 +64,9 @@ public:
/** Emit pending notifications in some other non-realtime thread. */
void emit_notifications(FrameTime end);
+ /** Return true iff any notifications are pending. */
+ bool pending_notifications() const { return _event_sink.read_space(); }
+
inline ID id() const { return _id; }
inline void locate(FrameTime s, SampleCount nframes) {