Github User Fetcher 1.0.0
C Application with Server and GUI
|
Go to the source code of this file.
Macros | |
#define | G_REF_COUNT_INIT |
#define | G_ATOMIC_REF_COUNT_INIT |
Functions | |
G_BEGIN_DECLS GLIB_AVAILABLE_IN_2_58 void | g_ref_count_init (grefcount *rc) |
GLIB_AVAILABLE_IN_2_58 void | g_ref_count_inc (grefcount *rc) |
GLIB_AVAILABLE_IN_2_58 gboolean | g_ref_count_dec (grefcount *rc) |
GLIB_AVAILABLE_IN_2_58 gboolean | g_ref_count_compare (grefcount *rc, gint val) |
GLIB_AVAILABLE_IN_2_58 void | g_atomic_ref_count_init (gatomicrefcount *arc) |
GLIB_AVAILABLE_IN_2_58 void | g_atomic_ref_count_inc (gatomicrefcount *arc) |
GLIB_AVAILABLE_IN_2_58 gboolean | g_atomic_ref_count_dec (gatomicrefcount *arc) |
GLIB_AVAILABLE_IN_2_58 gboolean | g_atomic_ref_count_compare (gatomicrefcount *arc, gint val) |
#define G_ATOMIC_REF_COUNT_INIT |
G_ATOMIC_REF_COUNT_INIT:
Evaluates to the initial reference count for gatomicrefcount
.
This macro is useful for initializing gatomicrefcount
fields inside structures, for instance:
|[ typedef struct { gatomicrefcount ref_count; char *name; char *address; } Person;
static const Person default_person = { .ref_count = G_ATOMIC_REF_COUNT_INIT, .name = "Default name", .address = "Default address", }; ]|
Since: 2.78
Definition at line 104 of file grefcount.h.
#define G_REF_COUNT_INIT |
G_REF_COUNT_INIT:
Evaluates to the initial reference count for grefcount
.
This macro is useful for initializing grefcount
fields inside structures, for instance:
|[ typedef struct { grefcount ref_count; char *name; char *address; } Person;
static const Person default_person = { .ref_count = G_REF_COUNT_INIT, .name = "Default name", .address = "Default address", }; ]|
Since: 2.78
Definition at line 77 of file grefcount.h.
GLIB_AVAILABLE_IN_2_58 gboolean g_atomic_ref_count_compare | ( | gatomicrefcount * | arc, |
gint | val ) |
GLIB_AVAILABLE_IN_2_58 gboolean g_atomic_ref_count_dec | ( | gatomicrefcount * | arc | ) |
GLIB_AVAILABLE_IN_2_58 void g_atomic_ref_count_inc | ( | gatomicrefcount * | arc | ) |
GLIB_AVAILABLE_IN_2_58 void g_atomic_ref_count_init | ( | gatomicrefcount * | arc | ) |
GLIB_AVAILABLE_IN_2_58 gboolean g_ref_count_compare | ( | grefcount * | rc, |
gint | val ) |
GLIB_AVAILABLE_IN_2_58 gboolean g_ref_count_dec | ( | grefcount * | rc | ) |
GLIB_AVAILABLE_IN_2_58 void g_ref_count_inc | ( | grefcount * | rc | ) |
G_BEGIN_DECLS GLIB_AVAILABLE_IN_2_58 void g_ref_count_init | ( | grefcount * | rc | ) |