Function

GLib-2.0GLibonce_init_leave_pointerSince 2.80

  • Counterpart to g_once_init_enter_pointer(). Expects a location of a static NULL-initialized initialization variable, and an initialization value other than NULL. Sets the variable to the initialization value, and releases concurrent threads blocking in g_once_init_enter_pointer() on this initialization variable.

    This functions behaves in the same way as g_once_init_leave(), but can be used to initialize pointers (or guintptr) instead of gsize.

    Parameters

    • location: any

      location of a static initializable variable containing NULL

    • Optionalresult: any

      new non-NULL value for *location

    Returns void

    2.80