gst/gstutils.c: Use g_atomic_int_set() here too instead of assignment + g_atomic_int_get().

Original commit message from CVS:
* gst/gstutils.c: (gst_atomic_int_set):
Use g_atomic_int_set() here too instead of assignment +
g_atomic_int_get().
This commit is contained in:
Sebastian Dröge 2008-04-17 08:34:14 +00:00
parent 3e914a83b3
commit 1479f03d7f
2 changed files with 7 additions and 5 deletions

View file

@ -1,3 +1,9 @@
2008-04-17 Sebastian Dröge <slomo@circular-chaos.org>
* gst/gstutils.c: (gst_atomic_int_set):
Use g_atomic_int_set() here too instead of assignment +
g_atomic_int_get().
2008-04-17 Sebastian Dröge <slomo@circular-chaos.org> 2008-04-17 Sebastian Dröge <slomo@circular-chaos.org>
* gst/gstutils.c: * gst/gstutils.c:

View file

@ -2836,11 +2836,7 @@ gst_pad_query_peer_convert (GstPad * pad, GstFormat src_format, gint64 src_val,
void void
gst_atomic_int_set (gint * atomic_int, gint value) gst_atomic_int_set (gint * atomic_int, gint value)
{ {
int ignore; g_atomic_int_set (atomic_int, value);
*atomic_int = value;
/* read acts as a memory barrier */
ignore = g_atomic_int_get (atomic_int);
} }
#endif #endif