mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 15:03:39 +02:00
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.
This commit is contained in:
@@ -121,6 +121,7 @@
|
||||
<xi:include href="gvariant-text.xml"/>
|
||||
<xi:include href="xml/refcount.xml"/>
|
||||
<xi:include href="xml/rcbox.xml"/>
|
||||
<xi:include href="xml/arcbox.xml"/>
|
||||
</chapter>
|
||||
|
||||
<chapter id="deprecated">
|
||||
|
@@ -3478,3 +3478,15 @@ g_rc_box_acquire
|
||||
g_rc_box_release
|
||||
g_rc_box_release_full
|
||||
</SECTION>
|
||||
|
||||
<SECTION>
|
||||
<FILE>arcbox</FILE>
|
||||
g_arc_box_alloc
|
||||
g_arc_box_alloc0
|
||||
g_arc_box_new
|
||||
g_arc_box_new0
|
||||
g_arc_box_dup
|
||||
g_arc_box_acquire
|
||||
g_arc_box_release
|
||||
g_arc_box_release_full
|
||||
</SECTION>
|
||||
|
Reference in New Issue
Block a user