commit 38bf20b05a3dc384ba3afb2bd83baa2ad64feacd
parent ea52f05af1c05c2dcead03a7ee57012d3912ef3d
Author: Tim Janik <timj@gnu.org>
Date: Thu, 7 Jul 2022 12:41:41 +0200
INCLUDE: clap/ext/thread-check.h: add comment from @abique about long tasks
Signed-off-by: Tim Janik <timj@gnu.org>
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/include/clap/ext/thread-check.h b/include/clap/ext/thread-check.h
@@ -11,7 +11,8 @@ extern "C" {
/* A note on threads as understood by CLAP:
*
* In the [main-thread], a CLAP plugin may carry out allocations, acquire a mutex and do IO,
- * bascially anything a reasonably performing program could do.
+ * basically anything a reasonably performing program could do. Long running tasks such as
+ * indexing presets, should still be run in background threads to keep the [main-thread] responsive.
*
* Within an [audio-thread] (of which there may be many in a given host), plugins should strive
* to meet realtime requirements. I.e. only carry out sufficiently performant and time-bound