mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 15:03:39 +02:00
Add init macros for refcounting types
We need a way to initialise refcounted types placed in static storage, or on the stack. Using proper macros avoids knowing the magic constant used for grefcount and gatomicrefcount.
This commit is contained in:
committed by
Philip Withnall
parent
28b1b9d9c3
commit
e2e93056f2
@@ -3689,12 +3689,14 @@ g_ref_count_init
|
||||
g_ref_count_inc
|
||||
g_ref_count_dec
|
||||
g_ref_count_compare
|
||||
G_REF_COUNT_INIT
|
||||
<SUBSECTION>
|
||||
gatomicrefcount
|
||||
g_atomic_ref_count_init
|
||||
g_atomic_ref_count_inc
|
||||
g_atomic_ref_count_dec
|
||||
g_atomic_ref_count_compare
|
||||
G_ATOMIC_REF_COUNT_INIT
|
||||
</SECTION>
|
||||
|
||||
<SECTION>
|
||||
|
Reference in New Issue
Block a user