Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
gh-82300: Add track parameter to shared memory#110778
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes from1 commit
3be08b4f50812acbc843171384476bbfca6db79426db11894d44cb82c62cff0dcda10f63d21d7e990e419c593ba9ef1ff3e5fe67466acf903fdf625d65e3f8a97c6d317c07f513f3fb67c7f0e7765afb7a5848c18255e015d8911766db5b852053f8File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -65,35 +65,33 @@ copying of data. | ||
| to an existing shared memory block, the ``size`` parameter is ignored. | ||
| *track*, when enabled, registers the shared memory block with the resource | ||
pan324 marked this conversation as resolved. OutdatedShow resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
| tracker process.This process ensures proper cleanup of shared memory | ||
| blocks even when all other processes with access to the memory have failed | ||
| to do so (mainly due to being killed by signals).The resource tracker is | ||
| overzealous in certain situations and might delete a shared memory block | ||
| when any process with access to the shared memory has terminated.*track* | ||
| should be set to ``False`` if there is already another process in place | ||
| that does the bookkeeping.In most situations, this means that *track* | ||
| should be set to ``False`` when *create* is set to ``False``. | ||
| .. method:: close() | ||
| Closesthe file descriptor/handleto the shared memory from this | ||
| instance. All instances should call ``close()`` once the instance | ||
pan324 marked this conversation as resolved. OutdatedShow resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
| is no longer needed. Depending on operating system, the underlying | ||
| memory may or maynotbe freed even if all handles to it have been | ||
| closed. To ensure proper cleanup, use the ``unlink()`` method. | ||
| .. method:: unlink() | ||
| Deletes the underlying shared memory block. This should be called only | ||
gpshead marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
| once per shared memory block regardless of the number of handles to it. | ||
pan324 marked this conversation as resolved. OutdatedShow resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
| After requesting its deletion, a shared memory block may or may not be | ||
| immediately destroyed and this behavior may differ across platforms. | ||
pan324 marked this conversation as resolved. OutdatedShow resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
| Attempts to access data inside the shared memory block after | ||
pan324 marked this conversation as resolved. OutdatedShow resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
| ``unlink()`` has been called may result in memory access errors. | ||
| To ensure proper bookkeeping, ``unlink()`` may only be called by | ||
| an instance with *track* enabled. | ||
pan324 marked this conversation as resolved. OutdatedShow resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
| .. attribute:: buf | ||
Uh oh!
There was an error while loading.Please reload this page.