pipewire/pipewire-alsa
Wim Taymans 2b11efdf3b alsa: fix race when updating the eventfd
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
2024-04-16 09:30:23 +02:00
..
alsa-plugins alsa: fix race when updating the eventfd 2024-04-16 09:30:23 +02:00
conf
tests treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00