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

[Qt6] TrackAnalysisScheduler: Remove dependency on Library #4478

Merged
merged 3 commits into from
Oct 24, 2021
Merged

[Qt6] TrackAnalysisScheduler: Remove dependency on Library #4478

merged 3 commits into from
Oct 24, 2021

Conversation

uklotzde
Copy link
Contributor

No need to replace TrackId with QUrl right now.

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

@@ -70,11 +73,13 @@ TrackAnalysisScheduler::TrackAnalysisScheduler(
for (int threadId = 0; threadId < numWorkerThreads; ++threadId) {
m_workers.emplace_back(AnalyzerThread::createInstance(
threadId,
library->dbConnectionPool(),
pDbConnectionPool,
Copy link
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 :/

Copy link
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
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
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
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
Contributor Author

Still 996 lines of linker errors in the Qt6 build

@Be-ing
Copy link
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