From 8e3ec4b9abb10b9e3b6289891c88a2156a26c383 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 2 Mar 2015 23:13:19 +0100 Subject: leave a ToDo note for the butler. --- libs/ardour/butler.cc | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'libs/ardour/butler.cc') diff --git a/libs/ardour/butler.cc b/libs/ardour/butler.cc index cd00965062..a89e8295d2 100644 --- a/libs/ardour/butler.cc +++ b/libs/ardour/butler.cc @@ -328,7 +328,19 @@ void Butler::queue_request (Request::Type r) { char c = r; - _xthread.deliver (c); + if (_xthread.deliver (c) != 1) { + /* the x-thread channel is non-blocking + * write may fail, but we really don't want to wait + * under normal circumstances. + * + * a lost "run" requests under normal RT operation + * is mostly harmless. + * + * TODO if ardour is freehweeling, wait & retry. + * ditto for Request::Type Quit + */ + assert(1); // we're screwd + } } void -- cgit v1.2.3