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

Cachingreader fix2 "dedicated thread for CachingReaderWorker" #30

Merged
merged 13 commits into from Jul 3, 2013

Conversation

daschuer
Copy link
Member

This fixes the race condition when loading a track.
I could be interesting to measure the performance difference from the original version, but I don't know how.

Q_ASSERT(memory_to_use >= kChunkLength);

// Only allocate as many bytes as we will actually use.
memory_to_use -= (memory_to_use % kChunkLength);
Copy link
Member

Choose a reason for hiding this comment

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

memory_to_use is unused since the worker doesn't allocate the chunks

@rryan
Copy link
Member

rryan commented Jul 3, 2013

This looks good -- the engine callback doesn't touch the QSemaphore at all (which is good because both release/acquire can block) and the scheduling happens after the callback. Thanks!

@daschuer
Copy link
Member Author

daschuer commented Jul 3, 2013

@rryan: Thank you for review

daschuer added a commit that referenced this pull request Jul 3, 2013
Cachingreader fix2  "dedicated thread for CachingReaderWorker"
@daschuer daschuer merged commit 0d38c2b into mixxxdj:master Jul 3, 2013
@daschuer daschuer mentioned this pull request Dec 28, 2014
@daschuer daschuer mentioned this pull request Jun 11, 2018
11 tasks
ronso0 referenced this pull request in ronso0/mixxx Oct 24, 2019
Use Cue::kPositionNotDefined for unset cue positions.
Holzhaus pushed a commit to Holzhaus/mixxx that referenced this pull request Aug 23, 2020
add subsection for installing presets from the forum
m0dB pushed a commit to m0dB/mixxx that referenced this pull request Jan 21, 2024
Wiki archive: exclude unneeded directories
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.

None yet

2 participants