[issue4738] Patch to make zlib-objects better support threads
ebfe
report at bugs.python.org
Fri Jan 2 11:38:18 CET 2009
ebfe <knabberknusperhaus at yahoo.de> added the comment:
Here is a small test-script with concurrent access to a single
compressosbj. The original patch will immediately deadlock.
The patch attached releases the GIL before trying to get the zlib-lock.
This allows the other thread to release the zlib-lock but comes at the
cost of one additional GIL lock/unlock.
Added file: http://bugs.python.org/file12531/zlib_threads-3.diff
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4738>
_______________________________________
More information about the Python-bugs-list
mailing list