Skip to content

Commit 34f1e9a

Browse files
committed
Added to doc around size parameter of SharedMemory.
1 parent 1e5341e commit 34f1e9a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Doc/library/multiprocessing.shared_memory.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@ copying of data.
6161
that platform's memory page size, the exact size of the shared memory
6262
block may be larger or equal to the size requested. When attaching to an
6363
existing shared memory block, set to ``0`` (which is the default).
64+
Requesting a size greater than the original when attaching to an existing
65+
shared memory block will attempt a resize of the shared memory block
66+
which may or may not be successful. Requesting a size smaller than the
67+
original will attempt to attach to the first N bytes of the existing
68+
shared memory block but may still give access to the full allocated size.
6469

6570
*read_only* controls whether a shared memory block is to be available
6671
for only reading or for both reading and writing. Its specification is

0 commit comments

Comments
 (0)