Skip to content

Be strict about shared memory lifetime#308

Merged
RemiSoummer merged 4 commits intodevelopfrom
feature/shared_memory_lifetime
May 30, 2025
Merged

Be strict about shared memory lifetime#308
RemiSoummer merged 4 commits intodevelopfrom
feature/shared_memory_lifetime

Conversation

@ehpor
Copy link
Copy Markdown
Collaborator

@ehpor ehpor commented Apr 29, 2025

Caution

This PR requires #272 to be merged before.

This replaces #112.

This PR is to explicitly prohibit creating a new shared memory object with a certain ID, when one already exists. This is not allowed on Linux/MacOS but was allowed on Windows until now (due to me not correctly checking the error output). This PR performs stricter error checks. Simultaneously, all error values are now checked and the exceptions now contain text containing the exact error that was encountered rather than a generic message.

@ehpor ehpor self-assigned this Apr 29, 2025
@ehpor ehpor added the bugfix Fixing of a bug label Apr 29, 2025
@ehpor ehpor force-pushed the feature/shared_memory_lifetime branch from 5f65834 to 359fe50 Compare May 7, 2025 22:17
@ehpor ehpor marked this pull request as ready for review May 7, 2025 22:27
@ehpor ehpor requested a review from raphaelpclt May 7, 2025 22:27
@ehpor ehpor mentioned this pull request May 17, 2025
@RemiSoummer RemiSoummer force-pushed the feature/shared_memory_lifetime branch from 359fe50 to 20e4a8a Compare May 20, 2025 14:09
@RemiSoummer
Copy link
Copy Markdown
Collaborator

Installed on HiCAT PC and the test is passing

@RemiSoummer RemiSoummer force-pushed the feature/shared_memory_lifetime branch 2 times, most recently from 9e90f19 to df5bebb Compare May 20, 2025 17:34
@ehpor
Copy link
Copy Markdown
Collaborator Author

ehpor commented May 21, 2025

Installed on HiCAT PC and the test is passing

Did you mean to approve or comment?

@RemiSoummer RemiSoummer force-pushed the feature/shared_memory_lifetime branch from df5bebb to a7543f2 Compare May 30, 2025 14:08
@RemiSoummer RemiSoummer self-requested a review May 30, 2025 14:31
@RemiSoummer
Copy link
Copy Markdown
Collaborator

I meant to comment, working on it now

@RemiSoummer
Copy link
Copy Markdown
Collaborator

also tested ok on MacOS.

Copy link
Copy Markdown
Collaborator

@RemiSoummer RemiSoummer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good and working ok on Mac OS and windows.
I'm working on adding a few tests but will do in another PR to avoid delaying

@RemiSoummer RemiSoummer merged commit d1d70cd into develop May 30, 2025
6 checks passed
@RemiSoummer RemiSoummer deleted the feature/shared_memory_lifetime branch May 30, 2025 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix Fixing of a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants