From f81282808b0d9147fc0c980e418c56774d1f6735 Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Sat, 14 Jun 2003 02:32:39 +0000 Subject: "" svn path=/trunk/; revision=702 --- externals/grill/flext/source/flext.cpp | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) (limited to 'externals/grill/flext/source/flext.cpp') diff --git a/externals/grill/flext/source/flext.cpp b/externals/grill/flext/source/flext.cpp index 2eacb118..fc033b21 100644 --- a/externals/grill/flext/source/flext.cpp +++ b/externals/grill/flext/source/flext.cpp @@ -47,12 +47,6 @@ flext_base::flext_base(): } else attrhead = clattrhead = NULL; - - // message queue ticker - qhead = qtail = NULL; -#if FLEXT_SYS == FLEXT_SYS_PD || FLEXT_SYS == FLEXT_SYS_MAX - qclk = (t_qelem *)(qelem_new(this,(t_method)QTick)); -#endif } flext_base::~flext_base() @@ -67,15 +61,8 @@ flext_base::~flext_base() StopThreads(); #endif - // send remaining pending messages and destroy queue ticker -#if FLEXT_SYS == FLEXT_SYS_PD || FLEXT_SYS == FLEXT_SYS_MAX - while(qhead) QTick(this); - qelem_free((t_qelem *)qclk); -#elif FLEXT_SYS == FLEXT_SYS_JMAX - while(qhead) QTick((fts_object_t *)thisHdr(),0,NULL,0,NULL); - // this is dangerous because there may be other timers on this object! - fts_timebase_remove_object(fts_get_timebase(), (fts_object_t *)thisHdr()); -#endif + // send remaining pending messages for this object + QFlush(this); // delete message lists if(methhead) delete methhead; @@ -171,6 +158,8 @@ void flext_base::Setup(t_classid id) AddMethod(id,0,"getattributes",(methfun)cb_ListAttrib); SetProxies(c); + + StartQueue(); } #if FLEXT_SYS == FLEXT_SYS_JMAX -- cgit v1.2.1