John Bollinger <john.bollin...@stjude.org> added the comment:

I attach a patch fixing the issue and providing a test and docs.

The fix is substantially as I described earlier: a thread that holds the Tcl 
lock is permitted to acquire it logically any number of times, but physically 
attempts to acquire it only if it doesn't already hold it.  A thread-local 
counter ensures that the lock is logically released the same number of times it 
has been acquired before it is physically released.

The external API is unchanged, and even source changes are minimized to the 
greatest extent possible.

If this fix ultimately is accepted then I hope it can also be back-ported to 
2.7.

----------
keywords: +patch
Added file: http://bugs.python.org/file25866/reentrant-tkinter.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue14390>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to