mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
Issue #21565: multiprocessing: use contex-manager protocol for synchronization
primitives.
This commit is contained in:
parent
1691e35953
commit
a924fc7abc
9 changed files with 43 additions and 102 deletions
|
@ -1320,6 +1320,9 @@ processes.
|
|||
Note that accessing the ctypes object through the wrapper can be a lot slower
|
||||
than accessing the raw ctypes object.
|
||||
|
||||
.. versionchanged:: 3.5
|
||||
Synchronized objects support the :term:`context manager` protocol.
|
||||
|
||||
|
||||
The table below compares the syntax for creating shared ctypes objects from
|
||||
shared memory with the normal ctypes syntax. (In the table ``MyStruct`` is some
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue