g_once_init_leave
static gsize initialization_value = 0;
if (g_once_init_enter (&initialization_value))
{
gsize setup_value = 42; // initialization code hereg_once_init_leave (&initialization_value, setup_value);
}// use initialization_value here