mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
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:
parent
3e914a83b3
commit
1479f03d7f
2 changed files with 7 additions and 5 deletions
|
@ -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>
|
||||
|
||||
* gst/gstutils.c:
|
||||
|
|
|
@ -2836,11 +2836,7 @@ gst_pad_query_peer_convert (GstPad * pad, GstFormat src_format, gint64 src_val,
|
|||
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
|
||||
|
||||
|
|
Loading…
Reference in a new issue