<Sound Dev> Stuck thread when closing midi device

David Schumann david at dev-core.org
Tue Aug 25 14:32:22 UTC 2020


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/sound-dev/attachments/20200825/26d7cb20/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix.diff
Type: application/octet-stream
Size: 590 bytes
Desc: not available
URL: <https://mail.openjdk.java.net/pipermail/sound-dev/attachments/20200825/26d7cb20/fix.diff>


More information about the sound-dev mailing list