[LV2] worker thread question
robin at gareus.org
Tue Dec 25 15:53:45 PST 2012
On 12/25/2012 07:06 AM, hermann meyer wrote:
> New to the list, so first hello to all.
> I come here with a question about the worker thread extension, it's:
> How could I ensure that the worker request will also be send from
> internal host UI's ?
> Say, I have a GUI element that send a message to the engine control
> port, to fire up a work sequence, how could I let the host known that
> this special UI controller do that, and that his internal UI must do the
> same to ensure all work like suspected?
> Even, if the URI in use is a self defined one?
I don't think you can. The plugin itself needs to check in run() if a
worker is needed and schedule a worker thread if so.
I am not aware of a mechanism to specify custom available URI messages
to be used in generic UIs.
Can you make the decision if to launch a worker dependent on some
internal state rather than a message?
The message from your custom UI should just modify the internal state,
as would interaction with the generic host-UI. -> both will eventually
trigger the worker.
More information about the Devel