<Sound Dev> Stuck thread when closing midi device
Sergey Bylokhov
Sergey.Bylokhov at oracle.com
Tue Aug 25 19:51:59 UTC 2020
Hi, David.
This fix looks fine, I'll sponsor it. Thank you for your contribution!
Could you please sign the OCA:
https://www.oracle.com/technical-resources/oracle-contributor-agreement.html
On 25.08.2020 07:32, David Schumann wrote:
> I was able to find the root cause of the issue:
> When closing the device, the listening thread is not notified via the signal condition variable.
> Instead the condition is simply destroyed, causing the thread to be stuck forever.
>
> Attached is a very simple diff which fixes the problem by notifying the thread before destroying the condition.
> Please let me know if you have any questions.
> I would highly appreciate it if someone can sponsor the bug.
>
> Best regards,
> David
>
--
Best regards, Sergey.
More information about the sound-dev
mailing list