Fix edge-case race initialize_latencies() vs process()
Due to _init_countdown when the engine starts, it is extremely unlikely that Session::initialize_latencies(), which is invoked by AudioEngine::Running runs concurrently with Session::process, but at least in theory it would be possible.
This commit is contained in:
parent
0a49586b1a
commit
31b7e18d7d
|
@ -6641,8 +6641,10 @@ Session::missing_filesources (DataType dt) const
|
|||
void
|
||||
Session::initialize_latencies ()
|
||||
{
|
||||
block_processing ();
|
||||
update_latency (false);
|
||||
update_latency (true);
|
||||
unblock_processing ();
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in New Issue
Block a user