After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 113451 - GstAtomic needs compare_and_swap
GstAtomic needs compare_and_swap
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
git master
Other other
: Normal normal
: 0.6.x
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2003-05-21 15:44 UTC by Benjamin Otte (Company)
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Benjamin Otte (Company) 2003-05-21 15:44:28 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?
Comment 1 David Schleef 2003-05-21 19:25:10 UTC
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.
Comment 2 David Schleef 2003-05-29 22:09:36 UTC

*** This bug has been marked as a duplicate of 112143 ***
Comment 3 David Schleef 2003-05-29 22:11:36 UTC
-EBCAK Error between chair and keyboard

This bug is, of course, unlrelated to 112143.
Comment 4 David Schleef 2004-03-06 01:06:48 UTC
Close this, because glib has CAS now.