aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/py
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2005-03-18 04:58:20 +0000
committerThomas Grill <xovo@users.sourceforge.net>2005-03-18 04:58:20 +0000
commit1af7e2cbb252754be777399f604624f299ed343c (patch)
tree5f0490300dd4d6988164c52382f7805686fc3ff6 /externals/grill/py
parent580674d6bca1ad72d351cbe81af9e4f43af46a53 (diff)
*** empty log message ***
svn path=/trunk/; revision=2633
Diffstat (limited to 'externals/grill/py')
-rw-r--r--externals/grill/py/source/main.cpp4
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