From 524c99fb8a4f82e8857d8faff97e4bb8e22b0657 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 31 Jul 2016 16:25:02 -0400 Subject: Strengthen threading guarantees for work method --- lv2/lv2plug.in/ns/ext/worker/worker.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lv2/lv2plug.in/ns/ext/worker/worker.h b/lv2/lv2plug.in/ns/ext/worker/worker.h index c14397d..4376a0d 100644 --- a/lv2/lv2plug.in/ns/ext/worker/worker.h +++ b/lv2/lv2plug.in/ns/ext/worker/worker.h @@ -77,8 +77,11 @@ typedef struct _LV2_Worker_Interface { as requested, possibly with an arbitrary message to handle. A response can be sent to run() using `respond`. The plugin MUST NOT - make any assumptions about which thread calls this method, other than - the fact that there are no real-time requirements. + make any assumptions about which thread calls this method, except that + there are no real-time requirements and only one call may be executed at + a time. That is, the host MAY call this method from any non-real-time + thread, but MUST NOT make concurrent calls to this method from several + threads. @param instance The LV2 instance this is a method on. @param respond A function for sending a response to run(). -- cgit v1.2.1