From 7f24f7c5f62eb03e99b2ce812022f2fa3cdf05e6 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 12 Aug 2012 03:52:29 +0000 Subject: Fix notifications when running as LV2. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4665 a436a847-0d15-0410-975c-d299462d15a1 --- src/server/Context.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/server/Context.hpp') 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) { -- cgit v1.2.1