From da4e0fdbebfcc5e0010ed058cce8a39d1fc1df0f Mon Sep 17 00:00:00 2001 From: falkTX Date: Sat, 9 Jul 2022 17:50:16 +0100 Subject: [PATCH] Make sure no threads are used on wasm Signed-off-by: falkTX --- source/utils/CarlaThread.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/utils/CarlaThread.hpp b/source/utils/CarlaThread.hpp index 8e17708f8..ef0d488ad 100644 --- a/source/utils/CarlaThread.hpp +++ b/source/utils/CarlaThread.hpp @@ -26,6 +26,10 @@ # include #endif +#ifdef CARLA_OS_WASM +# error Threads do not work under wasm! +#endif + // ----------------------------------------------------------------------- // CarlaThread class