Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Branch commit log: devices/liquidsfz/liquidsfz.cc: add TODO about unconditional event processing See also: #44 (comment) devices/liquidsfz/liquidsfz.cc: fix for LiquidSFZ race cond by Stefan Westerfeld, #44 #44 swesterfeld commented Jun 18, 2024: > > tim-janik commented Jun 18, 2024: > > all input events must always be processed in render > > I agree. At least the filename changes, midi events can safely be dropped while a file is being loaded. > > Your patch is not good, because it will introduce race conditions of both threads accessing the same data. > Since we cannot use locks due to RT constraints, I guess the real fix will be to use a lock-free queue to send events to the loader thread. > I'll look into it and come up with a real fix and submit a PR. > However, here is a quick fix that just avoids the initial load problem and is still safe as in it doesn't introduce race conditions Signed-off-by: Tim Janik <[email protected]>
- Loading branch information