From 0709ac9fabf4184675df1c3d8e205a2790adaadb Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Sat, 8 Jan 2005 04:58:31 +0000 Subject: 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 --- externals/grill/flext/source/flstdc.h | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'externals/grill/flext/source/flstdc.h') 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 -- cgit v1.2.1