aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext/source/flsupport.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'externals/grill/flext/source/flsupport.cpp')
-rw-r--r--externals/grill/flext/source/flsupport.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/externals/grill/flext/source/flsupport.cpp b/externals/grill/flext/source/flsupport.cpp
index dcac4c75..26ddc51f 100644
--- a/externals/grill/flext/source/flsupport.cpp
+++ b/externals/grill/flext/source/flsupport.cpp
@@ -31,6 +31,11 @@ const t_symbol *flext::sym_signal = NULL;
void flext::Setup()
{
+ static bool issetup = false;
+ if(issetup)
+ return;
+ else issetup = true;
+
#if FLEXT_SYS == FLEXT_SYS_PD
sym_anything = &s_anything;
sym_pointer = &s_pointer;
@@ -57,6 +62,7 @@ void flext::Setup()
#endif
#ifdef FLEXT_THREADS
+ thrid = GetThreadId();
StartHelper();
#endif
}