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

Fix crash due to concurrent access in MidiController #13980

Open
wants to merge 5 commits into
base: 2.5
Choose a base branch
from

Conversation

daschuer
Copy link
Member

@daschuer daschuer commented Dec 4, 2024

This fixes #13940
The fix is implemented by locks around m_pMapping and reference counting.

The locks are either a mutex or a spin lock depending on the compiler support.
I have applied them everywhere, because it is not obvious which threads are readers and writers.

There is potential for further refactoring, because the Mapping is finally no longer shared when used. This is however out of scope of this band aid PR.

@JoergAtGithub
Copy link
Member

Such threading issues require a longer testing period, than we have until 2.5.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants