gst: don't use volatile to mean atomic
authorMatthew Waters <matthew@centricular.com>
Thu, 18 Mar 2021 03:46:15 +0000 (14:46 +1100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 19 Mar 2021 04:15:19 +0000 (04:15 +0000)
commit3d887c7f0771e52eb03e3a8c7e2791b94ca35055
tree99c9cfb93c475896084b59f39e9d80d65fbc2e0a
parent69e6cd773a1da26dd6f22cf316132d34f1bb852f
gst: don't use volatile to mean atomic

volatile is not sufficient to provide atomic guarantees and real atomics
should be used instead.  GCC 11 has started warning about using volatile
with atomic operations.

https://gitlab.gnome.org/GNOME/glib/-/merge_requests/1719

Discovered in https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/issues/868

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/775>
38 files changed:
gst/gstatomicqueue.c
gst/gstbuffer.c
gst/gstchildproxy.c
gst/gstdeviceprovider.c
gst/gstelement.c
gst/gstinfo.c
gst/gstparamspecs.c
gst/gstpluginloader.c
gst/gstpoll.c
gst/gstpreset.c
gst/gstpromise.c
gst/gstprotection.c
gst/gsttask.c
gst/gsturi.c
gst/gstvalue.c
libs/gst/base/gstaggregator.c
libs/gst/base/gstbaseparse.c
libs/gst/base/gstbasesink.c
libs/gst/base/gstbasesrc.c
libs/gst/base/gstbasetransform.c
libs/gst/base/gstflowcombiner.c
libs/gst/check/gstconsistencychecker.c
libs/gst/check/gstharness.c
libs/gst/controller/gsttimedvaluecontrolsource.c
libs/gst/net/gstnetaddressmeta.c
libs/gst/net/gstnetcontrolmessagemeta.c
plugins/elements/gstmultiqueue.c
plugins/elements/gstqueue2.h
plugins/elements/gstvalve.h
tests/check/gst/gstcontroller.c
tests/check/gst/gstmeta.c
tests/check/gst/gstminiobject.c
tests/check/gst/gstobject.c
tests/check/gst/gstpreset.c
tests/check/gst/gstprotection.c
tests/check/gst/gstvalue.c
tests/check/libs/controller.c
tests/examples/controller/control-sources.c