Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix #202751 SegFault delete SFont while loadSamples()
Mutex may be locked if another thread is trying to load, add, or delete soundfonts. If another thread deletes a soundfont, trying to read the zone info will result in a SEGFAULT as described in issue #202751. These operations need to be mutually-exclusive, but since Seq::process() is a realtime context, we can't block here. In order to keep Seq::process() running, my solution here is to simply not execute the rest of loadSamples() if another thread had locked that mutex.
- Loading branch information
af724bd
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.
for anyone looking at this, this was a failed attempt, and causes problems down the line...