refactor: improve stress test stability and memory ordering in engine
This commit is contained in:
committed by
Loic Coenen (aider)
parent
d6bd31fed5
commit
0537263a7a
@@ -72,8 +72,8 @@ void channel_add(jack_client_t *client, int idx) {
|
||||
|
||||
void channel_remove(jack_client_t *client, int idx) {
|
||||
(void)client;
|
||||
atomic_store(&channels[idx].active, 0);
|
||||
atomic_fetch_sub(&channel_count, 1);
|
||||
atomic_store_explicit(&channels[idx].active, 0, memory_order_release);
|
||||
atomic_fetch_sub_explicit(&channel_count, 1, memory_order_release);
|
||||
}
|
||||
|
||||
void channel_add_scene(jack_client_t *client, int idx) {
|
||||
|
||||
Reference in New Issue
Block a user