]> granicus.if.org Git - python/commit
bpo-35493: Use Process.sentinel instead of sleeping for polling worker status in...
authorPablo Galindo <Pablogsal@gmail.com>
Sat, 16 Mar 2019 22:34:24 +0000 (22:34 +0000)
committerGitHub <noreply@github.com>
Sat, 16 Mar 2019 22:34:24 +0000 (22:34 +0000)
commit7c994549dcffd0d9d3bb37475e6374f356e7240e
tree7b59c744c1900c05e920b1eeca1526d9fa886f87
parent962bdeab191ee64459caa199209331005797ea7a
bpo-35493: Use Process.sentinel instead of sleeping for polling worker status in multiprocessing.Pool (#11488)

* bpo-35493: Use Process.sentinel instead of sleeping for polling worker status in multiprocessing.Pool

* Use self-pipe pattern to avoid polling for changes

* Refactor some variable names and add comments

* Restore timeout and poll

* Use reader object only on wait()

* Recompute worker sentinels every time

* Remove timeout and use change notifier

* Refactor some methods to be overloaded by the ThreadPool, document the cache class and fix typos
Lib/multiprocessing/pool.py
Misc/NEWS.d/next/Library/2019-01-09-23-43-08.bpo-35493.kEcRGE.rst [new file with mode: 0644]