diff options
author | Thomas Grill <xovo@users.sourceforge.net> | 2003-11-29 03:41:26 +0000 |
---|---|---|
committer | Thomas Grill <xovo@users.sourceforge.net> | 2003-11-29 03:41:26 +0000 |
commit | df40bd59509b30e24353946e89e90bbf9790cafa (patch) | |
tree | ee9ab818a080be1963a4b37ac26bda4e48088983 /externals/grill/py/source/pyext.cpp | |
parent | c94409c4b7a90e8c16f6e5b08f1b8522b7ee71fe (diff) |
""
svn path=/trunk/; revision=1201
Diffstat (limited to 'externals/grill/py/source/pyext.cpp')
-rw-r--r-- | externals/grill/py/source/pyext.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/externals/grill/py/source/pyext.cpp b/externals/grill/py/source/pyext.cpp index a8dc581e..b8763771 100644 --- a/externals/grill/py/source/pyext.cpp +++ b/externals/grill/py/source/pyext.cpp @@ -440,8 +440,9 @@ V pyext::work_wrapper(V *data) // ----------------------------- // store new thread state +#ifdef FLEXT_THREADS pythrmap[GetThreadId()] = newthr; - +#endif { // call worker work_data *w = (work_data *)data; @@ -449,8 +450,10 @@ V pyext::work_wrapper(V *data) delete w; } +#ifdef FLEXT_THREADS // delete mapped thread state pythrmap.erase(GetThreadId()); +#endif // --- delete Python thread --- // grab the lock |