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().
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>
* gst/gstutils.c:
* gst/gstutils.h:
void
gst_atomic_int_set (gint * atomic_int, gint value)
{
- int ignore;
-
- *atomic_int = value;
- /* read acts as a memory barrier */
- ignore = g_atomic_int_get (atomic_int);
+ g_atomic_int_set (atomic_int, value);
}
#endif