aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext/source/flstdc.h
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2005-01-08 04:58:31 +0000
committerThomas Grill <xovo@users.sourceforge.net>2005-01-08 04:58:31 +0000
commit0709ac9fabf4184675df1c3d8e205a2790adaadb (patch)
tree828916c3a4f0cde9641a4ed40961f5e7d56966be /externals/grill/flext/source/flstdc.h
parentdad0b0542c08240f4431a34d46e6676461e0d83b (diff)
minor updates
adapted the queue stuff to work with the new set_callback functionality reconsidered flext::buffer:Update added object construction and destruction flags updated autoconf system small updates better templates, some minor changes update for linux cleanups svn path=/trunk/; revision=2476
Diffstat (limited to 'externals/grill/flext/source/flstdc.h')
-rw-r--r--externals/grill/flext/source/flstdc.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/externals/grill/flext/source/flstdc.h b/externals/grill/flext/source/flstdc.h
index 7d912090..75e17d57 100644
--- a/externals/grill/flext/source/flstdc.h
+++ b/externals/grill/flext/source/flstdc.h
@@ -281,25 +281,33 @@ typedef t_symbol *t_symptr;
// ----- set message queue mode -----
-#undef FLEXT_QTHR
-
#if FLEXT_SYS == FLEXT_SYS_PD && PD_MINOR_VERSION >= 37
// for PD version >= 0.37test10 FLEXT_PDLOCK is standard
#undef FLEXT_PDLOCK
#define FLEXT_PDLOCK
#endif
-#ifdef FLEXT_PDLOCK
+#if FLEXT_SYS == FLEXT_SYS_PD && PD_MINOR_VERSION >= 38 && defined(PD_DEVEL_VERSION)
+ // use idle callback
+ #define FLEXT_QMODE 1
+#elif defined(FLEXT_PDLOCK)
// new PD thread locking functionality shall be used
#if FLEXT_SYS == FLEXT_SYS_PD
#ifdef FLEXT_THREADS
// can only be used with PD and threaded build
- #define FLEXT_QTHR
+ #define FLEXT_QMODE 2
+ #else
+ #define FLEXT_QMODE 0
#endif
#else
#error FLEXT_PDLOCK can only be defined with PD
#endif
+#else
+ #define FLEXT_QMODE 0
#endif
+#ifndef FLEXT_QMODE
+#error Internal error: Queueing mode not defined
+#endif
#endif