glib/docs/reference/glib
Marco Trevisan (Treviño) bfdeb37f6e gatomic: Add Compare and Exchange functions that returns the previous value
Atomic primitives allow to do conditional compare and exchange but also
to get the value that was previously stored in the atomic variable.

Now, we provided an exchange function that allows to do an exchange if
the atomic value matches an expected value but we had no way to know
at the same time what was the value in the atomic at the moment of the
exchange try, an this can be useful in case that the operation fails,
for example if the current value is still acceptable for us, allowing
to do a kind of "OR" check:

  gint old_value;
  gint valid_value = 222;
  while (!g_atomic_pointer_compare_and_exchange_value (&atomic,
                                                       valid_value, 555,
                                                       &old_value)
    {
      if (old_value == 555 || old_value == 222)
        valid_value = old_value;
    }
2022-06-22 23:01:19 +02:00
..
xml docs: Change Bugzilla references to GitLab 2018-06-15 13:04:39 +01:00
building.xml meson: simplify iconv lookups using Meson's builtin dependency lookup 2022-06-16 12:04:59 -04:00
changes.xml tree: Fix various typos and outdated terminology 2020-06-12 15:01:08 +01:00
compiling.xml compiling.xml: Don't recommend backticks 2021-06-09 10:13:27 +00:00
cross.xml Make ld executable configurable 2019-11-04 15:08:33 +00:00
file-name-encodings.png Huh? This was a 6-byte file. Replaced it with the correct one. 2006-01-12 19:47:02 +00:00
file-name-encodings.sxd Replaced with the correct file. 2006-01-12 19:49:32 +00:00
glib-docs.xml gversionmacros: Add version macros for GLib 2.74 2022-03-28 12:55:20 +01:00
glib-gettextize.xml docs: Improve man page consistency 2012-08-03 23:36:45 -04:00
glib-overrides.txt docs: fix bogus override for GIConv 2017-10-27 12:06:41 +01:00
glib-sections.txt gatomic: Add Compare and Exchange functions that returns the previous value 2022-06-22 23:01:19 +02:00
gtester-report.xml glib: Deprecate gtester and gtester-report 2019-05-14 12:14:54 +01:00
gtester.xml glib: Deprecate gtester and gtester-report 2019-05-14 12:14:54 +01:00
gvariant-text.xml tree: Fix various typos and outdated terminology 2020-06-12 15:01:08 +01:00
gvariant-varargs.xml docs: Improve GVariant docs 2021-11-29 15:24:15 +05:30
mainloop-states.eps add images 2000-12-05 20:43:58 +00:00
mainloop-states.fig add images 2000-12-05 20:43:58 +00:00
mainloop-states.gif add images 2000-12-05 20:43:58 +00:00
mainloop-states.png add images 2000-12-05 20:43:58 +00:00
meson.build pcre: Drop internal libpcre copy 2021-06-16 16:45:10 +01:00
programming.xml docs: fix grammar in Writing GLib Applications/Threads 2016-01-31 12:54:28 -05:00
regex-syntax.xml tree: Fix various typos and outdated terminology 2020-06-12 15:01:08 +01:00
resources.xml docs: Remove mentions of mailing lists 2019-07-23 11:27:30 +01:00
running.xml docs: Wrap a code example more tightly to reduce minimum page width 2021-06-03 12:52:51 +01:00
Sorted_binary_tree_breadth-first_traversal.svg More GTree and GNode formatting and documentation fixes 2014-01-19 23:49:12 -05:00
Sorted_binary_tree_inorder.svg More GTree and GNode formatting and documentation fixes 2014-01-19 23:49:12 -05:00
Sorted_binary_tree_postorder.svg More GTree and GNode formatting and documentation fixes 2014-01-19 23:49:12 -05:00
Sorted_binary_tree_preorder.svg More GTree and GNode formatting and documentation fixes 2014-01-19 23:49:12 -05:00
version.xml.in Add version info to API docs. 2002-11-23 01:37:17 +00:00