[vlc-devel] [PATCH 3/6] aout: output: Remove unneeded memory fence
Hugo Beauzée-Luyssen
hugo at beauzee.fr
Thu Dec 3 15:33:46 CET 2020
Since a23c75a1f48404e4891526c7ee4ec34c199bf6f7 we use vlc_atomic_rc_t
which uses memory_order_acq_rel, while the previous code was using
memory_order_release
---
src/audio_output/output.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/src/audio_output/output.c b/src/audio_output/output.c
index 00cccc005f..b0ddfc64b5 100644
--- a/src/audio_output/output.c
+++ b/src/audio_output/output.c
@@ -386,8 +386,6 @@ void aout_Release(audio_output_t *aout)
if (!vlc_atomic_rc_dec(&owner->rc))
return;
- atomic_thread_fence(memory_order_acquire);
-
aout_dev_t *dev;
vlc_list_foreach(dev, &owner->dev.list, node)
{
--
2.29.2
More information about the vlc-devel
mailing list