From 28ba959cb77eabe61f8f58ac013b72e5d5d391d7 Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Tue, 22 Jun 2004 22:45:53 +0000 Subject: "" svn path=/trunk/; revision=1829 --- externals/grill/py/source/pyext.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'externals/grill/py/source/pyext.cpp') diff --git a/externals/grill/py/source/pyext.cpp b/externals/grill/py/source/pyext.cpp index 66428054..df47beff 100644 --- a/externals/grill/py/source/pyext.cpp +++ b/externals/grill/py/source/pyext.cpp @@ -453,6 +453,7 @@ V pyext::work_wrapper(V *data) else #endif { +#ifdef FLEXT_THREADS // --- make new Python thread --- // get the global lock PyEval_AcquireLock(); @@ -463,7 +464,6 @@ V pyext::work_wrapper(V *data) // ----------------------------- // store new thread state -#ifdef FLEXT_THREADS pythrmap[GetThreadId()] = newthr; #endif { @@ -476,7 +476,6 @@ V pyext::work_wrapper(V *data) #ifdef FLEXT_THREADS // delete mapped thread state pythrmap.erase(GetThreadId()); -#endif // --- delete Python thread --- // grab the lock @@ -490,6 +489,7 @@ V pyext::work_wrapper(V *data) // release the lock PyEval_ReleaseLock(); // ----------------------------- +#endif } --thrcount; } -- cgit v1.2.1