diff options
author | David Robillard <d@drobilla.net> | 2012-08-12 03:52:29 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-08-12 03:52:29 +0000 |
commit | 7f24f7c5f62eb03e99b2ce812022f2fa3cdf05e6 (patch) | |
tree | c1efe17c3b3e281b8021a347569a46d266c8d77f /src/server/Context.hpp | |
parent | 5fae80a1340441467ec03ad34f39cfd3273f7099 (diff) | |
download | ingen-7f24f7c5f62eb03e99b2ce812022f2fa3cdf05e6.tar.gz ingen-7f24f7c5f62eb03e99b2ce812022f2fa3cdf05e6.tar.bz2 ingen-7f24f7c5f62eb03e99b2ce812022f2fa3cdf05e6.zip |
Fix notifications when running as LV2.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4665 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server/Context.hpp')
-rw-r--r-- | src/server/Context.hpp | 3 |
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) { |