-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Conversation
…hintList) according to code style guide
Q_ASSERT(memory_to_use >= kChunkLength); | ||
|
||
// Only allocate as many bytes as we will actually use. | ||
memory_to_use -= (memory_to_use % kChunkLength); |
There was a problem hiding this comment.
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
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! |
Conflicts: src/soundsourcemp3.cpp
@rryan: Thank you for review |
Cachingreader fix2 "dedicated thread for CachingReaderWorker"
Use Cue::kPositionNotDefined for unset cue positions.
add subsection for installing presets from the forum
Wiki archive: exclude unneeded directories
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.