Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mobilion reader uses HDF5 library, which isn't thread safe. Put a processwide lock in the ctor to ensure only one thread is in use at a time #3253

Merged
merged 4 commits into from
Dec 4, 2024

Conversation

bspratt
Copy link
Member

@bspratt bspratt commented Dec 2, 2024

Looks a bit funny when parallel processing multiple .mbi files in Skyline and MSConvertGUI, as only one proceeds at a time, but it does complete

…cesswide lock in the ctor to ensure only one thread is in use at a time
@bspratt bspratt requested a review from chambm December 2, 2024 22:49
@bspratt
Copy link
Member Author

bspratt commented Dec 2, 2024

For the record, this is a design call made by MattC and myself, in anticipation of Mobilion resolving the issue eventually. Not worth the effort to build a "not suitable for parallel use" sense into the UI of either application.

@chambm
Copy link
Member

chambm commented Dec 3, 2024

Eventually I should add an IterationListener parameter for Reader::read() so the user can be informed why it's paused. Could be useful for other readers as well if/when the fillInMetadata() function is a little slower than we'd like. Skyline isn't set up to listen and report those messages, but MSConvertGUI is.

@bspratt bspratt merged commit 6215e4f into master Dec 4, 2024
1 of 2 checks passed
@bspratt bspratt deleted the Skyline/work/20241202_mobilion_lock branch December 4, 2024 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants