From 1af7e2cbb252754be777399f604624f299ed343c Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Fri, 18 Mar 2005 04:58:20 +0000 Subject: *** empty log message *** svn path=/trunk/; revision=2633 --- externals/grill/py/source/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'externals/grill/py') 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 -- cgit v1.2.1