GLib.ATOMIC_REF_COUNT_INIT
Description: Reference for GLib.ATOMIC_REF_COUNT_INIT

### Constant

# GLibATOMIC_REF_COUNT_INIT

#### Declaration

    #define G_ATOMIC_REF_COUNT_INIT 1

#### Description

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",
    };