Skip to content

[Qt6] TrackAnalysisScheduler: Remove dependency on Library#4478

Merged
Be-ing merged 3 commits intomixxxdj:mainfrom
uklotzde:trackanalysisscheduler
Oct 24, 2021
Merged

[Qt6] TrackAnalysisScheduler: Remove dependency on Library#4478
Be-ing merged 3 commits intomixxxdj:mainfrom
uklotzde:trackanalysisscheduler

Conversation

@uklotzde
Copy link
Copy Markdown
Contributor

No need to replace TrackId with QUrl right now.

This should reduce the number of linker errors for the stripped down Qt6 build.

m_workers.emplace_back(AnalyzerThread::createInstance(
threadId,
library->dbConnectionPool(),
pDbConnectionPool,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This will still be problematic for Qt6 :/

Comment thread src/analyzer/trackanalysisscheduler.h
Copy link
Copy Markdown
Contributor

@Be-ing Be-ing left a comment

Choose a reason for hiding this comment

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

This is a good step forward.

@Be-ing
Copy link
Copy Markdown
Contributor

Be-ing commented Oct 24, 2021

No need to replace TrackId with QUrl right now.

Do you plan to work on this next?

@uklotzde
Copy link
Copy Markdown
Contributor Author

uklotzde commented Oct 24, 2021

No need to replace TrackId with QUrl right now.

Do you plan to work on this next?

Only makes sense if we have a clear vision of were we are heading to. It doesn't make any sense to refactor code that must be thrown away in the end. I am no longer wasting my time to clean up this entangled mess ...while trying to keep things working somehow and getting drawn into bikeshedding discussions.

@Be-ing
Copy link
Copy Markdown
Contributor

Be-ing commented Oct 24, 2021

It doesn't make any sense to refactor code that must be thrown away in the end. I am no longer wasting my time to clean up this entangled mess

I agree, we should not waste time cleaning up code we intend to discard soon anyway. I thought we had agreed that we don't want to completely rewrite the analysis code though, so I think it would be worthwhile to switch TrackAnalysisScheduler from TrackId to QUrl. I think we can guard the DbConnectionPool parameter for AnalyzerThread behind QT_VERSION checks because the only analyzer that needs it is AnalyzerWaveform.

@uklotzde
Copy link
Copy Markdown
Contributor Author

Still 996 lines of linker errors in the Qt6 build

@Be-ing
Copy link
Copy Markdown
Contributor

Be-ing commented Oct 24, 2021

I made a lot of progress with those linker errors in #4448 but further progress is blocked by TrackAnalysisScheduler's dependency on TrackId.

@Be-ing Be-ing merged commit bf107a7 into mixxxdj:main Oct 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants