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:
Emmanuele Bassi
2023-04-06 11:45:41 +01:00
committed by Philip Withnall
parent 28b1b9d9c3
commit e2e93056f2
2 changed files with 56 additions and 0 deletions

View File

@@ -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>