STINNER Victor added the comment: The bug occurs when notify(n) is called while less than n threads are waiting in cond.wait(): when some threads didn't reach cond.wait() yet. The synchronization code is very fragile and depends on time. The issue was worked again in the master banch by adding more _wait() calls...
To really fix the race condition, reliable synchronization primitives should be used, like threading.Event. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30727> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com