[issue22976] multiprocessing Queue empty() is broken on Windows

2021-02-23 Thread Eryk Sun
Change by Eryk Sun : -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bug

[issue22976] multiprocessing Queue empty() is broken on Windows

2014-12-02 Thread eryksun
eryksun added the comment: This also hangs for me in 2.7.8 64-bit, Windows 7. To poll the pipe, the parent process calls PeekNamedPipe, which blocks because the child has already called ReadFile. > It is possible that the problem is also present in Python 3. multiprocessing switched to overla

[issue22976] multiprocessing Queue empty() is broken on Windows

2014-12-02 Thread R. David Murray
Changes by R. David Murray : -- nosy: +sbt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue22976] multiprocessing Queue empty() is broken on Windows

2014-12-02 Thread Radosław Szkodziński
New submission from Radosław Szkodziński: multiprocessing.Queue.empty() uses pipe polling on Windows. Unfortunately, pipe semantics on windows are different from POSIX. The result is either: - Hang when one process tries to get() and another checks for empty() - Falsely returning empty() == Fal