summaryrefslogtreecommitdiffstats
path: root/src/server/Context.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-11-17 21:50:35 +0000
committerDavid Robillard <d@drobilla.net>2012-11-17 21:50:35 +0000
commitd04ce4cb7d4aa3eb72bc79c09dfe5bb025ad79f4 (patch)
treed7be2189bf19375e2c2f4631a5905047d16307a8 /src/server/Context.hpp
parente04c114e90b37ff7ed6a479205875616e6afce1f (diff)
downloadingen-d04ce4cb7d4aa3eb72bc79c09dfe5bb025ad79f4.tar.gz
ingen-d04ce4cb7d4aa3eb72bc79c09dfe5bb025ad79f4.tar.bz2
ingen-d04ce4cb7d4aa3eb72bc79c09dfe5bb025ad79f4.zip
Gracefully handle failure to send notifications due to buffer overrun.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4827 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server/Context.hpp')
-rw-r--r--src/server/Context.hpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/server/Context.hpp b/src/server/Context.hpp
index cabfcc89..5343b817 100644
--- a/src/server/Context.hpp
+++ b/src/server/Context.hpp
@@ -53,8 +53,10 @@ public:
virtual ~Context() {}
- /** Send a notification from this run context. */
- void notify(LV2_URID key = 0,
+ /** Send a notification from this run context.
+ * @return false on failure (ring is full)
+ */
+ bool notify(LV2_URID key = 0,
FrameTime time = 0,
PortImpl* port = 0,
uint32_t size = 0,