mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
The eventfd is read/written from/to the data thread and the main thread concurrently with the update_active() function. Use an atomic compare and swap to make this update atomic and avoid an inconsistency between the active boolean and the eventfd. This could result in the eventfd being unsignaled while the active flag was true and the application receiving a timeout and XRun in its poll loop. Fixes #3711 |
||
|---|---|---|
| .. | ||
| ctl_pipewire.c | ||
| meson.build | ||
| pcm_pipewire.c | ||