Armin Rigo <ar...@users.sourceforge.net> added the comment: Ok, I followed Nick's suggestion, and I finally found out how to write the code in order to avoid all (or most?) deadlocks without any change in the rest of CPython. It requires a way to be sure that some callback function is invoked _at the next cross-bytecode point_, and not (or not much) later, which I also include here. Here is the updated patch.
---------- Added file: http://bugs.python.org/file23073/stm2.diff _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue12850> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com