Menu

atomic functions in GLib

GLib supports the following atomic functions on integers:

  • g_atomic_int_set
  • g_atomic_int_get
  • g_atomic_int_or
  • g_atomic_int_and
  • g_atomic_int_xor
  • g_atomic_int_inc
  • g_atomic_int_add
  • ...

which makes live much easier.

Posted by Joël Krähemann 2013-09-14

Log in to post a comment.