[vlc-commits] aout: output: Remove unneeded memory fence
Hugo Beauzée-Luyssen
git at videolan.org
Fri Dec 4 10:43:22 UTC 2020
vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Thu Nov 26 08:37:43 2020 -0800| [872331f0e5bdaa57aef15d85c41bcdf0544c19ae] | committer: Hugo Beauzée-Luyssen
aout: output: Remove unneeded memory fence
Since a23c75a1f48404e4891526c7ee4ec34c199bf6f7 we use vlc_atomic_rc_t
which uses memory_order_acq_rel, while the previous code was using
memory_order_release
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=872331f0e5bdaa57aef15d85c41bcdf0544c19ae
---
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)
{
More information about the vlc-commits
mailing list