Add atomically refcounted data
commitb607927a4338cb6906ac67586268828a9aa8eed8
authorEmmanuele Bassi <ebassi@gnome.org>
Mon, 11 Jun 2018 10:52:54 +0000 (11 11:52 +0100)
committerEmmanuele Bassi <ebassi@gnome.org>
Mon, 9 Jul 2018 09:11:42 +0000 (9 10:11 +0100)
treedad1ae0cef7f45d982e27ab75b4dd0a7a9619788
parentc5d2417d07d055e6b91f2573a1a0237b60475393
Add atomically refcounted data

GArcBox is the atomic reference counting version of GRcBox. Unlike
GRcBox, the reference acquisition and release on GArcBox are guaranteed
to be atomic, and thus they can be performed from different threads.

This is similar to Rust's Arc<Box<T>> combination of traits.
docs/reference/glib/glib-docs.xml
docs/reference/glib/glib-sections.txt
glib/Makefile.am
glib/garcbox.c [new file with mode: 0644]
glib/grcbox.c
glib/grcbox.h
glib/grcboxprivate.h [new file with mode: 0644]
glib/meson.build