aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext/source/flext.cpp
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2002-12-22 01:28:34 +0000
committerThomas Grill <xovo@users.sourceforge.net>2002-12-22 01:28:34 +0000
commit99a29c1926eee84f100ad9ea59a8c33f7878c342 (patch)
tree8b9235a630b5839350529d9e255d4f87c2389b5b /externals/grill/flext/source/flext.cpp
parent927c48a90eb2a5ebf9e221041cd963c7377c8349 (diff)
"no message"
svn path=/trunk/; revision=306
Diffstat (limited to 'externals/grill/flext/source/flext.cpp')
-rw-r--r--externals/grill/flext/source/flext.cpp14
1 files changed, 2 insertions, 12 deletions
diff --git a/externals/grill/flext/source/flext.cpp b/externals/grill/flext/source/flext.cpp
index e052e56a..f74d11c6 100644
--- a/externals/grill/flext/source/flext.cpp
+++ b/externals/grill/flext/source/flext.cpp
@@ -130,15 +130,8 @@ flext_base::flext_base():
{
LOG1("%s - flext logging is on",thisName());
-#ifdef FLEXT_THREADS
-// shouldexit = false;
-// thrhead = thrtail = NULL;
-#endif
qhead = qtail = NULL;
qclk = (t_qelem *)(qelem_new(this,(t_method)QTick));
-#if FLEXT_SYS == FLEXT_SYS_MAX
- yclk = (t_clock *)(clock_new(this,(t_method)YTick));
-#endif
AddMethod(0,"getattributes",(methfun)cb_ListAttrib);
}
@@ -146,15 +139,12 @@ flext_base::flext_base():
flext_base::~flext_base()
{
#ifdef FLEXT_THREADS
- TermThreads();
+ StopThreads();
#endif
// send remaining pending messages
while(qhead) QTick(this);
qelem_free((t_qelem *)qclk);
-#if FLEXT_SYS == FLEXT_SYS_MAX
- clock_free((object *)yclk);
-#endif
if(inlist) delete inlist;
if(outlist) delete outlist;
@@ -464,7 +454,7 @@ void flext_base::Setup(t_class *c)
ADD_IN_FT(9);
#ifdef FLEXT_THREADS
- thrid = pthread_self();
+ thrid = GetThreadId();
StartHelper();
#endif