Skip to content

Commit 86debb3

Browse files
aiskZeroIntensity
andauthored
Update Doc/library/multiprocessing.shared_memory.rst
Co-authored-by: Peter Bierma <[email protected]>
1 parent ef3b5ce commit 86debb3

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

Doc/library/multiprocessing.shared_memory.rst

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,14 @@ copying of data.
116116

117117
Rename the underlying shared memory block to *newname*.
118118
By default, if *newname* already exists, it will be unlinked beforehand.
119-
Passing the :data:`!os.SHM_RENAME_EXCHANGE` as *flags*,
120-
an exchange with *newname* will be proceeded instead.
121-
Passing the :data:`!os.SHM_RENAME_NOREPLACE` as *flags*,
122-
an error will be triggered if *newname* already exists.
119+
120+
*flags* (0 by default) takes :ref:`bitwise ORed <bitwise>` flags together.
121+
122+
* :data:`!os.SHM_RENAME_EXCHANGE` will let
123+
an exchange with *newname* will be processed instead.
124+
* :data:`!os.SHM_RENAME_NOREPLACE` will raise
125+
an error will be triggered if *newname* already exists.
126+
123127

124128
.. attribute:: buf
125129

0 commit comments

Comments
 (0)