[LV2] [PATCH 1/5] add eg05-scope example plugin

David Robillard d at drobilla.net
Sat Dec 14 22:33:50 PST 2013


On Mon, 2013-12-09 at 20:41 +0100, Robin Gareus wrote:
[...]
>  plugins/eg05-scope.lv2/examploscope_ui.c   |  629 ++++++++++++++++++++++++++++
[...]

This UI has a bunch of locking in it, and strange comments about
threads.  In what scenario are you seeing the UI methods called from
multiple threads concurrently?

As I understand them, the Gtk idle functions should register callbacks
that get called in the Gtk main thread, which generally serves as "the
UI thread".

The UI extension explicitly states that all callbacks are called in the
same context, i.e. UIs do not are not supposed to have to deal with
locking.  If hosts are calling UI methods concurrently, that is a
problem.

-- 
dr





More information about the Devel mailing list