aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext/source/flext.cpp
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2003-06-14 02:32:39 +0000
committerThomas Grill <xovo@users.sourceforge.net>2003-06-14 02:32:39 +0000
commitf81282808b0d9147fc0c980e418c56774d1f6735 (patch)
tree40f50ddfb01b1efce4a4a7189722ff85340b5eed /externals/grill/flext/source/flext.cpp
parentc0c7359304c7bb54d794c74b260d9b0bd18f02ae (diff)
""
svn path=/trunk/; revision=702
Diffstat (limited to 'externals/grill/flext/source/flext.cpp')
-rw-r--r--externals/grill/flext/source/flext.cpp19
1 files changed, 4 insertions, 15 deletions
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