gst: don't use volatile to mean atomic
authorMatthew Waters <matthew@centricular.com>
Fri, 19 Mar 2021 06:31:51 +0000 (17:31 +1100)
committerMatthew Waters <matthew@centricular.com>
Fri, 19 Mar 2021 06:31:51 +0000 (17:31 +1100)
commit10a461daf42ccc1675727c3946316bba26e1f3ae
tree4c98aaf561220df32cd522344f0b2a632adc8f5d
parent3b2f3939a477b0fcba3837a4e19f476a06cedc07
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/gst-docs/-/merge_requests/150>
markdown/application-development/advanced/pipeline-manipulation.md
markdown/plugin-development/advanced/allocation.md