From 88ca1e3514eeb7fd15ea85cc00bf5858d8bd474f Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 16 Mar 2011 23:15:29 +0000 Subject: Add threading rule for all classes (prohibit messing with global state). --- core.lv2/lv2.ttl | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'core.lv2') diff --git a/core.lv2/lv2.ttl b/core.lv2/lv2.ttl index 2fa40fe..ea020d1 100644 --- a/core.lv2/lv2.ttl +++ b/core.lv2/lv2.ttl @@ -140,6 +140,10 @@ the functions provided by a plugin are divided into classes:

run(), connect_port()
+

Plugin functions in any class MUST NOT manipulate any state which might +affect other plugin or host code, e.g. by using non-reentrant global +functions.

+

Extensions to this specification which add new plugin functions MUST declare in which of these classes the functions belong, or define new classes for them. Extensions which add new host-provided functions MUST declare from which -- cgit v1.2.1