[issue30727] [2.7] test_threading.ConditionTests.test_notify() hangs randomly on Python 2.7
Serhiy Storchaka
report at bugs.python.org
Thu Jun 22 07:48:07 EDT 2017
Serhiy Storchaka added the comment:
I still didn't see a code, but perhaps we could use a spin-lock. Every child thread increases the global counter, and the main thread waits until the counter equal to the number of child threads (sleeping for short time in a loop) before calling notify().
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30727>
_______________________________________
More information about the Python-bugs-list
mailing list