diff options
Diffstat (limited to 'externals/grill/flext/tutorial/thread2/main.cpp')
-rw-r--r-- | externals/grill/flext/tutorial/thread2/main.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/externals/grill/flext/tutorial/thread2/main.cpp b/externals/grill/flext/tutorial/thread2/main.cpp index ce2a170e..bd6354a2 100644 --- a/externals/grill/flext/tutorial/thread2/main.cpp +++ b/externals/grill/flext/tutorial/thread2/main.cpp @@ -10,15 +10,18 @@ WARRANTIES, see the file, "license.txt," in this distribution. This shows an example of multiple threads and syncing with a thread conditional */ -// define FLEXT_THREADS for thread usage. Flext must also have been compiled with that defined! +/* define FLEXT_THREADS for thread usage. Flext must also have been compiled with that defined! + it's even better to define that as a compiler flag (-D FLEXT_THREADS) for all files of the + flext external +*/ #ifndef FLEXT_THREADS #define FLEXT_THREADS #endif #include <flext.h> -#if !defined(FLEXT_VERSION) || (FLEXT_VERSION < 301) -#error You need at least flext version 0.3.1 +#if !defined(FLEXT_VERSION) || (FLEXT_VERSION < 400) +#error You need at least flext version 0.4.0 #endif @@ -65,7 +68,6 @@ thread2::thread2(int del): { AddInAnything(); AddOutInt(2); - SetupInOut(); // set up inlets and outlets FLEXT_ADDMETHOD(0,m_start); // register start for integer numbers (floats in PD) FLEXT_ADDMETHOD_(0,"text",m_text); // register m_text method for "text" tag |