aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/multiprocessing/synchronize.py
Commit message (Collapse)AuthorAge
* remove type annotations from multiprocessing. (#129381)Gregory P. Smith2025-01-30
| | | | | | | | | | | | | | | | * remove type annotations from multiprocessing. One of them was technically invalid per typing specs... but since we're not checking these in the stdlib today lets elide them. https://discuss.python.org/t/static-type-annotations-in-cpython/65068/13 * use the actual comment style annotation format Co-authored-by: 🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua> --------- Co-authored-by: 🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua>
* gh-125679: multiprocessing Lock and RLock - fix invalid representation ↵Duprat2024-11-07
| | | | string on MacOSX. (#125680)
* Cleanup multiprocessing comment and unusual import error message (#126532)Gregory P. Smith2024-11-07
| | | | Define constants as constants rather than calling `list(range(2))`. Explain which values must remain in sync via comments.
* gh-108520: Fix bad fork detection in nested multiprocessing use case (#108568)albanD2023-08-30
| | | | | | | | gh-107275 introduced a regression where a SemLock would fail being passed along nested child processes, as the `is_fork_ctx` attribute would be left missing after the first deserialization. --------- Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Antoine Pitrou <pitrou@free.fr>
* gh-77377: Ensure multiprocessing SemLock is valid for spawn-based Process ↵albanD2023-08-23
| | | | | | | | | | | | before serializing it (#107275) Ensure multiprocessing SemLock is valid for spawn Process before serializing it. Creating a multiprocessing SemLock with a fork context, and then trying to pass it to a spawn-created Process, would segfault if not detected early. --------- Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Antoine Pitrou <pitrou@free.fr>
* bpo-25066: Added repr for multiprocessing.Event (GH-29749)Kumar Aditya2021-12-09
| | | Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* Fix typo in message from assert statement (GH-21283)Allen2020-08-17
| | | The error message was missing space between the action "acquire" and "_wait_semaphore" which is an attribute for instances of Condition.
* bpo-36867: Make semaphore_tracker track other system resources (GH-13222)Pierre Glaser2019-05-10
| | | The multiprocessing.resource_tracker replaces the multiprocessing.semaphore_tracker module. Other than semaphores, resource_tracker also tracks shared_memory segments. Patch by Pierre Glaser.
* bpo-34054: multiprocessing uses time.monotonic() (GH-8118)Victor Stinner2018-07-06
| | | | | The multiprocessing module now uses the monotonic clock time.monotonic() instead of the system clock time.time() to implement timeouts.
* bpo-5001: More-informative multiprocessing error messages (#3079)Allen W. Smith, Ph.D2017-08-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Make error message more informative Replace assertions in error-reporting code with more-informative version that doesn't cause confusion over where and what the error is. * Additional clarification + get travis to check * Change from SystemError to TypeError As suggested in PR comment by @pitrou, changing from SystemError; TypeError appears appropriate. * NEWS file installation; ACKS addition (will do my best to justify it by additional work) * Making current AssertionErrors in multiprocessing more informative * Blurb added re multiprocessing managers.py, queues.py cleanup * Further multiprocessing cleanup - went through pool.py * Fix two asserts in multiprocessing/util.py * Most asserts in multiprocessing more informative * Didn't save right version * Further work on multiprocessing error messages * Correct typo * Correct typo v2 * Blasted colon... serves me right for trying to work on two things at once * Simplify NEWS entry * Update 2017-08-18-17-16-38.bpo-5001.gwnthq.rst * Update 2017-08-18-17-16-38.bpo-5001.gwnthq.rst OK, never mind. * Corrected (thanks to pitrou) error messages for notify * Remove extraneous backslash in docstring.
* bpo-29293: multiprocessing.Condition.notify() lacks parameter `n` (#2480)Antoine Pitrou2017-07-04
| | | | | | * bpo-29293: multiprocessing.Condition.notify() lacks parameter `n` * Add NEWS blurb
* Issue #22033: Reprs of most Python implemened classes now contain actualSerhiy Storchaka2014-07-25
| | | | class name instead of hardcoded one.
* Issue #21565: multiprocessing: use contex-manager protocol for synchronizationCharles-François Natali2014-05-25
| | | | primitives.
* Issue #20990: Fix issues found by pyflakes for multiprocessing.Richard Oudkerk2014-03-23
|
* Issue #20976: pyflakes: Remove unused importsVictor Stinner2014-03-20
|
* Issue #19478: Make choice of semaphore prefix more flexible.Richard Oudkerk2013-11-02
|
* Issue #18999: Make multiprocessing use context objects.Richard Oudkerk2013-10-16
| | | | | This allows different parts of a program to use different methods for starting processes without interfering with each other.
* Issue #8713: Support alternative start methods in multiprocessing on Unix.Richard Oudkerk2013-08-14
| | | | See http://hg.python.org/sandbox/sbt#spawn
* - Fix typos in the multiprocessing module.doko@ubuntu.com2013-05-15
|
* Issue #14059: Implement multiprocessing.BarrierRichard Oudkerk2012-06-15
|
* Fix potential NameError in multiprocessing.Condition.wait()Richard Oudkerk2012-06-04
|
* Mark multiprocessing files with "Licensed to PSF under a Contributor Agreement"Richard Oudkerk2012-04-30
| | | | instead of BSD licence.
* Issue #14087: multiprocessing: add Condition.wait_for(). Patch by sbt.Charles-François Natali2012-04-17
|
* Remove unused or redundant imports in concurrent.futures and multiprocessing.Florent Xicluna2011-11-11
|
* 9162: fix license in multiprocessing filesR. David Murray2010-12-14
|
* Support new Condition return value in the multiprocessing version.Georg Brandl2010-10-28
|
* Merged revisions 73073-73074,73089 via svnmerge fromBenjamin Peterson2009-06-01
| | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r73073 | benjamin.peterson | 2009-05-31 09:43:00 -0500 (Sun, 31 May 2009) | 1 line remove function import ........ r73074 | benjamin.peterson | 2009-05-31 10:00:27 -0500 (Sun, 31 May 2009) | 1 line __enter__ and __exit__ must be on the class ........ r73089 | andrew.kuchling | 2009-05-31 19:14:19 -0500 (Sun, 31 May 2009) | 1 line The class for regexes isn't called RegexObject any more; correct the text ........
* Merged revisions 70908,70939,71009,71022,71036 via svnmerge fromBenjamin Peterson2009-04-05
| | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r70908 | jesse.noller | 2009-03-31 17:20:35 -0500 (Tue, 31 Mar 2009) | 1 line Issue 5619: Pass MS CRT debug flags into subprocesses ........ r70939 | jesse.noller | 2009-03-31 22:45:50 -0500 (Tue, 31 Mar 2009) | 1 line Fix multiprocessing.event to match the new threading.Event API ........ r71009 | jesse.noller | 2009-04-01 19:03:28 -0500 (Wed, 01 Apr 2009) | 1 line issue5545: Switch to Autoconf for multiprocessing; special thanks to Martin Lowis for help ........ r71022 | jesse.noller | 2009-04-01 21:32:55 -0500 (Wed, 01 Apr 2009) | 1 line Issue 3110: Additional protection for SEM_VALUE_MAX on platforms, thanks to Martin Loewis ........ r71036 | jesse.noller | 2009-04-01 23:22:09 -0500 (Wed, 01 Apr 2009) | 1 line Issue 3551: Raise ValueError if the size causes ERROR_NO_SYSTEM_RESOURCES ........
* Merged revisions 66670,66681,66688,66696-66699 via svnmerge fromBenjamin Peterson2008-10-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r66670 | georg.brandl | 2008-09-28 15:01:36 -0500 (Sun, 28 Sep 2008) | 2 lines Don't show version in title. ........ r66681 | georg.brandl | 2008-09-29 11:51:35 -0500 (Mon, 29 Sep 2008) | 2 lines Update nasm location. ........ r66688 | jesse.noller | 2008-09-29 19:15:45 -0500 (Mon, 29 Sep 2008) | 2 lines issue3770: if SEM_OPEN is 0, disable the mp.synchronize module, rev. Nick Coghlan, Damien Miller ........ r66696 | andrew.kuchling | 2008-09-30 07:31:07 -0500 (Tue, 30 Sep 2008) | 1 line Edits, and add markup ........ r66697 | andrew.kuchling | 2008-09-30 08:00:34 -0500 (Tue, 30 Sep 2008) | 1 line Markup fix ........ r66698 | andrew.kuchling | 2008-09-30 08:00:51 -0500 (Tue, 30 Sep 2008) | 1 line Markup fixes ........ r66699 | andrew.kuchling | 2008-09-30 08:01:46 -0500 (Tue, 30 Sep 2008) | 1 line Markup fixes. (optparse.rst probably needs an entire revision pass.) ........
* Merged revisions 65864 via svnmerge fromBenjamin Peterson2008-08-19
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r65864 | jesse.noller | 2008-08-19 14:06:19 -0500 (Tue, 19 Aug 2008) | 2 lines issue3352: clean up the multiprocessing API to remove many get_/set_ methods and convert them to properties. Update the docs and the examples included. ........
* Merged revisions 64125 via svnmerge fromBenjamin Peterson2008-06-11
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r64125 | benjamin.peterson | 2008-06-11 12:27:50 -0500 (Wed, 11 Jun 2008) | 2 lines give the threading API PEP 8 names ........
* Merged revisions 64104,64117 via svnmerge fromBenjamin Peterson2008-06-11
svn+ssh://pythondev@svn.python.org/python/trunk ........ r64104 | benjamin.peterson | 2008-06-10 21:40:25 -0500 (Tue, 10 Jun 2008) | 2 lines add the multiprocessing package to fulfill PEP 371 ........ r64117 | benjamin.peterson | 2008-06-11 07:26:31 -0500 (Wed, 11 Jun 2008) | 2 lines fix import of multiprocessing by juggling imports ........