summaryrefslogtreecommitdiffstats
path: root/Modules/_multiprocessing
Commit message (Collapse)AuthorAgeFilesLines
* bpo-1635741: Fix NULL ptr deref in multiprocessing (GH-22880)Christian Heimes2020-10-221-1/+0
| | | | | | Commit 1d541c25c8019f7a0b80b3e1b437abe171e40b65 introduced a NULL pointer dereference in error path. Signed-off-by: Christian Heimes <christian@python.org>
* bpo-1635741: Port multiprocessing ext to multiphase init (GH-21378)Mohamed Koubaa2020-08-111-42/+60
| | | Port the _multiprocessing extension module to multiphase initialization (PEP 489).
* bpo-20175: Convert Modules/_multiprocessing to the Argument Clinic (GH-14245)Zackery Spytz2020-07-125-94/+797
|
* bpo-37999: No longer use __int__ in implicit integer conversions. (GH-15636)Serhiy Storchaka2020-05-261-11/+1
| | | | Only __index__ should be used to make integer conversions lossless.
* bpo-40268: Remove unused structmember.h includes (GH-19530)Victor Stinner2020-04-151-1/+0
| | | | | | If only offsetof() is needed: include stddef.h instead. When structmember.h is used, add a comment explaining that PyMemberDef is used.
* bpo-39511: Fix multiprocessing semlock_acquire() (GH-18298)Victor Stinner2020-02-011-10/+11
| | | | The Python C API must not be used when the GIL is released: only access Py_None when the GIL is hold.
* Remove some unused defines in multiprocessing.h. (GH-15661)Sergey Fedoseev2019-09-071-10/+0
| | | | | It looks like they are unused since 87cf220972c9cb400ddcd577962883dcc5dca51a.
* bpo-37034: Display argument name on errors with keyword arguments with ↵Rémi Lapeyre2019-08-291-3/+3
| | | | Argument Clinic. (GH-13593)
* bpo-36974: tp_print -> tp_vectorcall_offset and tp_reserved -> tp_as_async ↵Jeroen Demeyer2019-05-311-2/+2
| | | | | | | | | (GH-13464) Automatically replace tp_print -> tp_vectorcall_offset tp_compare -> tp_as_async tp_reserved -> tp_as_async
* bpo-36127: Argument Clinic: inline parsing code for keyword parameters. ↵Serhiy Storchaka2019-03-141-7/+48
| | | | (GH-12058)
* bpo-36254: Fix invalid uses of %d in format strings in C. (GH-12264)Serhiy Storchaka2019-03-131-1/+1
|
* bpo-35813: Tests and docs for shared_memory (#11816)Davin Potts2019-02-242-668/+167
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Added tests for shared_memory submodule. * Added tests for ShareableList. * Fix bug in allocationn size during creation of empty ShareableList illuminated by existing test run on Linux. * Initial set of docs for shared_memory module. * Added docs for ShareableList, added doctree entry for shared_memory submodule, name refactoring for greater clarity. * Added examples to SharedMemoryManager docs, for ease of documentation switched away from exclusively registered functions to some explicit methods on SharedMemoryManager. * Wording tweaks to docs. * Fix test failures on Windows. * Added tests around SharedMemoryManager. * Documentation tweaks. * Fix inappropriate test on Windows. * Further documentation tweaks. * Fix bare exception. * Removed __copyright__. * Fixed typo in doc, removed comment. * Updated SharedMemoryManager preliminary tests to reflect change of not supporting all registered functions on SyncManager. * Added Sphinx doctest run controls. * CloseHandle should be in a finally block in case MapViewOfFile fails. * Missed opportunity to use with statement. * Switch to self.addCleanup to spare long try/finally blocks and save one indentation, change to use decorator to skip test instead. * Simplify the posixshmem extension module. Provide shm_open() and shm_unlink() functions. Move other functionality into the shared_memory.py module. * Added to doc around size parameter of SharedMemory. * Changed PosixSharedMemory.size to use os.fstat. * Change SharedMemory.buf to a read-only property as well as NamedSharedMemory.size. * Marked as provisional per PEP411 in docstring. * Changed SharedMemoryTracker to be private. * Removed registered Proxy Objects from SharedMemoryManager. * Removed shareable_wrap(). * Removed shareable_wrap() and dangling references to it. * For consistency added __reduce__ to key classes. * Fix for potential race condition on Windows for O_CREX. * Remove unused imports. * Update access to kernel32 on Windows per feedback from eryksun. * Moved kernel32 calls to _winapi. * Removed ShareableList.copy as redundant. * Changes to _winapi use from eryksun feedback. * Adopt simpler SharedMemory API, collapsing PosixSharedMemory and WindowsNamedSharedMemory into one. * Fix missing docstring on class, add test for ignoring size when attaching. * Moved SharedMemoryManager to managers module, tweak to fragile test. * Tweak to exception in OpenFileMapping suggested by eryksun. * Mark a few dangling bits as private as suggested by Giampaolo.
* bpo-35813: Added shared_memory submodule of multiprocessing. (#11664)Davin Potts2019-02-021-0/+724
| | | Added shared_memory submodule to multiprocessing in time for first alpha with cross-platform tests soon to follow.
* bpo-35436: Add missing PyErr_NoMemory() calls and other minor bug fixes. ↵Zackery Spytz2018-12-071-3/+6
| | | | | | (GH-11015) Set MemoryError when appropriate, add missing failure checks, and fix some potential leaks.
* bpo-33012: Fix invalid function cast warnings with gcc 8. (GH-6749)Serhiy Storchaka2018-11-271-2/+2
| | | | | | Fix invalid function cast warnings with gcc 8 for method conventions different from METH_NOARGS, METH_O and METH_VARARGS excluding Argument Clinic generated code.
* bpo-33012: Fix invalid function cast warnings with gcc 8 for METH_NOARGS. ↵Siddhesh Poyarekar2018-04-291-5/+5
| | | | | | | | | (GH-6030) METH_NOARGS functions need only a single argument but they are cast into a PyCFunction, which takes two arguments. This triggers an invalid function cast warning in gcc8 due to the argument mismatch. Fix this by adding a dummy unused argument.
* bpo-31653: Remove deadcode in semlock_acquire() (#4091)Victor Stinner2017-10-231-4/+4
| | | | | | | | | | Fix the following Coverity warning: >>> CID 1420038: Control flow issues (DEADCODE) >>> Execution cannot reach this statement: "res = sem_trywait(self->han...". 321 res = sem_trywait(self->handle); The deadcode was introduced by the commit c872d39d324cd6f1a71b73e10406bbaed192d35f.
* bpo-31653: Don't release the GIL if we can acquire a multiprocessing ↵Antoine Pitrou2017-10-221-10/+20
| | | | semaphore immediately (#4078)
* bpo-30022: Get rid of using EnvironmentError and IOError (except test… (#1051)Serhiy Storchaka2017-04-162-4/+4
|
* bpo-6532: Make the thread id an unsigned integer. (#781)Serhiy Storchaka2017-03-231-1/+1
| | | | | | | | | | | * bpo-6532: Make the thread id an unsigned integer. From C API side the type of results of PyThread_start_new_thread() and PyThread_get_thread_ident(), the id parameter of PyThreadState_SetAsyncExc(), and the thread_id field of PyThreadState changed from "long" to "unsigned long". * Restore a check in thread_get_ident().
* Issue #28152: Fix -Wunreachable-code warning on clangVictor Stinner2016-12-051-2/+5
| | | | | Replace 0 with (0) to ignore a compiler warning about dead code on "((int)(SEM_VALUE_MAX) < 0)": SEM_VALUE_MAX is not negative on Linux.
* require a long long data type (closes #27961)Benjamin Peterson2016-09-061-1/+1
|
* Issue #27591: Merge from 3.5Berker Peksag2016-07-231-0/+3
|\
| * Issue #27591: Set sigint_event to NULL if _PyOS_IsMainThread() returns falseBerker Peksag2016-07-231-0/+3
| | | | | | | | Patch by Chris Angelico.
* | Issue #26924: Fix Windows buildbotsBerker Peksag2016-05-071-1/+1
| | | | | | | | | | | | | | | | sem_unlink is defined as #define SEM_UNLINK(name) 0 under Windows.
* | Issue #26924: Do not define _multiprocessing.sem_unlink under AndroidBerker Peksag2016-05-071-1/+1
|/ | | | Android declares sem_unlink but doesn't implement it.
* Issue #21704: Fix build error for _multiprocessing when semaphoresRichard Oudkerk2014-07-281-0/+2
| | | | are not available. Patch by Arfrever Frehtes Taifersar Arahesis.
* Fix conversion from Py_ssize_t to int.Richard Oudkerk2013-09-071-2/+4
|
* Issue #8713: Support alternative start methods in multiprocessing on Unix.Richard Oudkerk2013-08-143-14/+66
| | | | See http://hg.python.org/sandbox/sbt#spawn
* Reuse Py_MIN and Py_MAX macros: remove duplicate MIN/MAX macrosVictor Stinner2013-06-041-9/+0
| | | | multiprocessing.h: remove unused MIN and MAX macros
* - Fix typos in the multiprocessing module.doko@ubuntu.com2013-05-151-1/+1
|\
| * - Fix typos in the multiprocessing module.doko@ubuntu.com2013-05-151-1/+1
| |
* | Replace WaitForMultipleObjects with WaitForMultipleObjectEx,Martin v. Löwis2013-01-251-1/+1
| | | | | | | | for better WinRT compatibility.
* | Replace WaitForSingleObject with WaitForSingleObjectEx,Martin v. Löwis2013-01-251-2/+2
| | | | | | | | for better WinRT compatibility.
* | Issue #9586: Merge.Richard Oudkerk2013-01-011-0/+7
|\ \ | |/
| * Issue #9586: MergeRichard Oudkerk2013-01-011-0/+7
| |\
| | * Issue #9586: Redefine SEM_FAILED on MacOSX to keep compiler happy.Richard Oudkerk2013-01-011-0/+7
| | |
| | * Issue #10133: Make multiprocessing deallocate buffer if socket read fails.Richard Oudkerk2012-06-111-13/+16
| | | | | | | | | | | | Patch by Hallvard B Furuseth.
| | * Fix for issue 14725 for 3.2 branchRichard Oudkerk2012-05-051-0/+1
| | |
* | | Issue #16719: Get rid of WindowsError. Use OSError insteadAndrew Svetlov2012-12-191-2/+2
| | | | | | | | | | | | Patch by Serhiy Storchaka.
* | | Get rid of circular import and eliminate unprefixed exported symbolsRichard Oudkerk2012-10-073-26/+15
|/ / | | | | | | from _multiprocessing.
* | Make multiprocessing's shared memory use memoryview instead of raw pointerRichard Oudkerk2012-05-261-17/+0
| |
* | Mark multiprocessing files with "Licensed to PSF under a Contributor Agreement"Richard Oudkerk2012-04-302-2/+4
| | | | | | | | instead of BSD licence.
* | Issue #11750: The Windows API functions scattered in the _subprocess andAntoine Pitrou2012-04-182-834/+72
| | | | | | | | | | _multiprocessing.win32 modules now live in a single module "_winapi". Patch by sbt.
* | Issue #12328: Fix multiprocessing's use of overlapped I/O on Windows.Antoine Pitrou2012-03-051-27/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also, add a multiprocessing.connection.wait(rlist, timeout=None) function for polling multiple objects at once. Patch by sbt. Complete changelist from sbt's patch: * Adds a wait(rlist, timeout=None) function for polling multiple objects at once. On Unix this is just a wrapper for select(rlist, [], [], timeout=None). * Removes use of the SentinelReady exception and the sentinels argument to certain methods. concurrent.futures.process has been changed to use wait() instead of SentinelReady. * Fixes bugs concerning PipeConnection.poll() and messages of zero length. * Fixes PipeListener.accept() to call ConnectNamedPipe() with overlapped=True. * Fixes Queue.empty() and SimpleQueue.empty() so that they are threadsafe on Windows. * Now PipeConnection.poll() and wait() will not modify the pipe except possibly by consuming a zero length message. (Previously poll() could consume a partial message.) * All of multiprocesing's pipe related blocking functions/methods are now interruptible by SIGINT on Windows.
* | Issue #14125: Fix multiprocessing refleak on Windows. Patch by sbt.Stefan Krah2012-02-271-1/+4
| |
* | Issue #8184: multiprocessing: On Windows, don't set SO_REUSEADDR on ConnectionCharles-François Natali2012-02-081-0/+1
| | | | | | | | | | sockets, and set FILE_FLAG_FIRST_PIPE_INSTANCE on named pipes, to make sure two listeners can't bind to the same socket/pipe (or any existing socket/pipe).
* | Fix compilation warning on WindowsAmaury Forgeot d'Arc2011-12-171-1/+1
| |
* | Issue #10350: Read and save errno before calling a function which might ↵Antoine Pitrou2011-12-161-1/+3
|\ \ | |/ | | | | | | | | overwrite it. Original patch by Hallvard B Furuseth.
| * Issue #10350: Read and save errno before calling a function which might ↵Antoine Pitrou2011-12-161-1/+3
| | | | | | | | | | | | overwrite it. Original patch by Hallvard B Furuseth.