SIGN IN SIGN UP

ao_pipewire: avoid deadlock when starting thread loop

loop_start starts a thread which immediately acquires the thread loop
lock. Locking the loop before loop_start can therefore deadlock the
newly created thread during initialization.

Locking the thread loop before loop_start was always incorrect, but
Pipewire commit fb49e0795c28* made the issue visible by switching
pw_thread_loop_lock to the underlying SPA loop lock.

To fix this, we just avoid starting the loop until after we're connected
to the server.

* https://github.com/PipeWire/pipewire/commit/fb49e0795c28c892116b03369785ba86c27c968d
L
llyyr committed
1a78f9fa8e6903bb51c9e43eefd64456a880ed13
Parent: db73857
Committed by Dudemanguy <random342@airmail.cc> on 5/22/2026, 5:51:57 PM