Skip to content

Fix occasional audio interface deadlock#4450

Merged
PhysSong merged 1 commit into
LMMS:stable-1.2from
PhysSong:exitlock
Jul 10, 2018
Merged

Fix occasional audio interface deadlock#4450
PhysSong merged 1 commit into
LMMS:stable-1.2from
PhysSong:exitlock

Conversation

@PhysSong

Copy link
Copy Markdown
Member

Fixes #4406 by ensuring audio thread has read the NULL buffer before stop processing. Dropping them have caused several regressions(#4406, #3397, #3396, etc.) because stopProcessing of backend can be called before it receives NULL buffer.
Instead of relying on per-backend semaphores(Dropped for SDL in 98346f7, for JACK in 1dcacbb), Mixer::fifoWriter now checks it.

@PhysSong

PhysSong commented Jul 1, 2018

Copy link
Copy Markdown
Member Author

Review please! I want to merge this soon, but I think it'd be better to wait for reviews.

@PhysSong

Copy link
Copy Markdown
Member Author

Merging since there was no review and I can find any regressions.

@PhysSong PhysSong merged commit f2d6832 into LMMS:stable-1.2 Jul 10, 2018
@PhysSong PhysSong deleted the exitlock branch July 10, 2018 02:14
sdasda7777 pushed a commit to sdasda7777/lmms that referenced this pull request Jun 28, 2022
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.

1 participant