GNOME Bugzilla – Bug 113451
GstAtomic needs compare_and_swap
Last modified: 2004-12-22 21:47:04 UTC
The only method to currently compare atomic values is by using dec_and_test, which makes it useless for anything but refcounting. I'd want to use it for state changes. Bug 63621 would offer implementations for some archs which are save to use I think. btw: Should I open a seperate bug to stay close to glibs design so we can one day remove the atomic stuff and use typedef GAtomic GstAtomicInt?
I think we should stay as close as possible to glib, so that we can easily share code back and forth until we upgrade to a glib that supports GAtomic.
*** This bug has been marked as a duplicate of 112143 ***
-EBCAK Error between chair and keyboard This bug is, of course, unlrelated to 112143.
Close this, because glib has CAS now.