diff options
author | Thomas Grill <xovo@users.sourceforge.net> | 2003-10-20 02:38:10 +0000 |
---|---|---|
committer | Thomas Grill <xovo@users.sourceforge.net> | 2003-10-20 02:38:10 +0000 |
commit | 3a4a2a2dc54d2b0d71691cff3001404d03d77fcb (patch) | |
tree | c41c573f66dd2e08ccce61c8e9ed1aacc7e09f18 /externals/grill/py/source/modmeth.cpp | |
parent | 6c11b94129b43ddb663122a4d6274489e63bca3d (diff) |
""
svn path=/trunk/; revision=1110
Diffstat (limited to 'externals/grill/py/source/modmeth.cpp')
-rw-r--r-- | externals/grill/py/source/modmeth.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/externals/grill/py/source/modmeth.cpp b/externals/grill/py/source/modmeth.cpp index 83e8a7b6..b376a4fb 100644 --- a/externals/grill/py/source/modmeth.cpp +++ b/externals/grill/py/source/modmeth.cpp @@ -43,27 +43,27 @@ const C *py::py_doc = -V py::tick(py *th) +V py::tick(V *) { - th->Lock(); + Lock(); - if(!th->thrcount) { + if(!thrcount) { // all threads have stopped - th->shouldexit = false; - th->stoptick = 0; + shouldexit = false; + stoptick = 0; } else { // still active threads - if(!--th->stoptick) { - post("%s - Threads couldn't be stopped entirely - %i remaining",th->thisName(),th->thrcount); - th->shouldexit = false; + if(!--stoptick) { + post("%s - Threads couldn't be stopped entirely - %i remaining",thisName(),thrcount); + shouldexit = false; } else // continue waiting - clock_delay(th->clk,PY_STOP_TICK); + stoptmr.Delay(PY_STOP_TICK/1000.); } - th->Unlock(); + Unlock(); } V py::m_stop(int argc,const t_atom *argv) @@ -82,7 +82,7 @@ V py::m_stop(int argc,const t_atom *argv) else stoptick = ticks; shouldexit = true; - clock_delay(clk,PY_STOP_TICK); + stoptmr.Delay(PY_STOP_TICK/1000.); Unlock(); } |