cpython/Lib/multiprocessing
Davin Potts e895de3e7f
bpo-35813: Tests and docs for shared_memory (#11816)
* 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.
2019-02-23 22:08:16 -06:00
..
dummy bpo-5001: More-informative multiprocessing error messages (#3079) 2017-08-30 00:52:18 +02:00
__init__.py Simplify __all__ in multiprocessing (GH-6856) 2018-07-11 19:22:28 +09:00
connection.py bpo-17560: Too small type for struct.pack/unpack in mutliprocessing.Connection (GH-10305) 2018-11-06 20:38:34 +01:00
context.py Simplify __all__ in multiprocessing (GH-6856) 2018-07-11 19:22:28 +09:00
forkserver.py bpo-31308: If multiprocessing's forkserver dies, launch it again when necessary (#3246) 2017-11-03 13:34:22 +01:00
heap.py bpo-32759: Free unused arenas in multiprocessing.heap (GH-5827) 2018-04-09 17:37:55 +02:00
managers.py bpo-35813: Tests and docs for shared_memory (#11816) 2019-02-23 22:08:16 -06:00
pool.py bpo-35378: Fix multiprocessing.Pool references (GH-11627) 2019-02-11 17:29:00 +00:00
popen_fork.py bpo-35202: Remove unused imports in Lib directory. (GH-10446) 2018-11-10 09:22:02 +02:00
popen_forkserver.py Fix bpo-30596: Add close() method to multiprocessing.Process (#2010) 2017-06-24 19:22:23 +02:00
popen_spawn_posix.py Fix bpo-30596: Add close() method to multiprocessing.Process (#2010) 2017-06-24 19:22:23 +02:00
popen_spawn_win32.py bpo-35872 and bpo-35873: Clears __PYVENV_LAUNCHER__ variable (GH-11745) 2019-02-03 23:19:38 -08:00
process.py bpo-35491: Enhance multiprocessing.BaseProcess.__repr__() (GH-11138) 2018-12-14 12:58:52 +01:00
queues.py bpo-22872: multiprocessing.Queue's put() and get() now raise ValueError if the queue is closed. (GH-9010) 2018-10-13 12:26:09 +03:00
reduction.py bpo-34521: Fix tests in test_multiprocessing_spawn to use correctly CMSG_SPACE (GH-9613) 2018-09-28 02:51:05 -07:00
resource_sharer.py bpo-33332: Add signal.valid_signals() (GH-6581) 2018-05-04 13:00:50 +02:00
semaphore_tracker.py bpo-33613, test_semaphore_tracker_sigint: fix race condition (#7850) 2018-09-04 10:53:54 +02:00
shared_memory.py bpo-35813: Tests and docs for shared_memory (#11816) 2019-02-23 22:08:16 -06:00
sharedctypes.py bpo-32157: Removed explicit quotes around %r and {!r}. (#4582) 2017-11-28 22:54:42 +02:00
spawn.py bpo-35872 and bpo-35873: Clears __PYVENV_LAUNCHER__ variable (GH-11745) 2019-02-03 23:19:38 -08:00
synchronize.py bpo-34054: multiprocessing uses time.monotonic() (GH-8118) 2018-07-06 13:51:52 +02:00
util.py bpo-31804: Fix multiprocessing.Process with broken standard streams (#6079) 2018-03-11 19:21:38 +01:00