Skip to content

Refactor passing of LegacyControllerMapping#14292

Merged
daschuer merged 5 commits intomixxxdj:2.5from
daschuer:gh13940_4
Feb 7, 2025
Merged

Refactor passing of LegacyControllerMapping#14292
daschuer merged 5 commits intomixxxdj:2.5from
daschuer:gh13940_4

Conversation

@daschuer
Copy link
Copy Markdown
Member

@daschuer daschuer commented Feb 3, 2025

This is the groundwork of fixing #13940

It contains the confirmed refactoring form #14159
I have forked that out because the original crasher fix requires some more polishing.

It basically enforces that m_pMapping is unique by using a unique pointer instead of using an assertion on a shared pointer, which is not 100 % reliable in a multi-threading context.

@daschuer daschuer changed the base branch from main to 2.5 February 3, 2025 22:51
Copy link
Copy Markdown
Member

@Swiftb0y Swiftb0y left a comment

Choose a reason for hiding this comment

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

while the current solution does not really rectify the bad pre-established design, the changes seem reasonable.

Comment thread src/controllers/legacycontrollermapping.h
Comment thread src/controllers/controller.h
Copy link
Copy Markdown
Member

@Swiftb0y Swiftb0y left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you. Waiting for CI.

@daschuer
Copy link
Copy Markdown
Member Author

daschuer commented Feb 7, 2025

CI is done. Thank you for review.

@daschuer daschuer merged commit 932d9cf into mixxxdj:2.5 Feb 7, 2025
@daschuer daschuer deleted the gh13940_4 branch April 24, 2025 05:50
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