diff options
Diffstat (limited to 'externals/grill/py')
-rw-r--r-- | externals/grill/py/source/main.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/externals/grill/py/source/main.cpp b/externals/grill/py/source/main.cpp index 252d3408..3b0aa869 100644 --- a/externals/grill/py/source/main.cpp +++ b/externals/grill/py/source/main.cpp @@ -522,10 +522,11 @@ bool pybase::qucall(PyObject *fun,PyObject *args) void pybase::threadworker() { + ++thrcount; + FifoEl *el; PyThreadState *my = FindThreadState(),*state; - ++thrcount; for(;;) { while(el = qufifo.Get()) { ++thrcount; @@ -551,6 +552,7 @@ void pybase::threadworker() qufifo.Free(el); } PyUnlock(state); + --thrcount; } #endif |