_g_messages_thread_init_nomessage ();
}
+/**
+ * g_thread_get_initialized:
+ *
+ * Indicates if g_thread_init() has been called.
+ *
+ * Returns: %TRUE if threads have been initialized.
+ *
+ * Since: 2.20
+ */
+gboolean
+g_thread_get_initialized (void)
+{
+ return g_thread_supported ();
+}
+
/* GOnce {{{1 ------------------------------------------------------------- */
/**
}
}
-/* GThread Extra Functions {{{1 ------------------------------------------- */
+/* GThread {{{1 -------------------------------------------------------- */
static void
g_thread_cleanup (gpointer data)
if (!thread)
{
- /* If no thread data is available, provide and set one. This
- can happen for the main thread and for threads, that are not
- created by GLib. */
+ /* If no thread data is available, provide and set one.
+ * This can happen for the main thread and for threads
+ * that are not created by GLib.
+ */
thread = g_new0 (GRealThread, 1);
- thread->thread.joinable = FALSE; /* This is a save guess */
+ thread->thread.joinable = FALSE; /* This is a safe guess */
thread->thread.func = NULL;
thread->thread.data = NULL;
thread->private_data = NULL;
return (GThread*)thread;
}
- /* Unsorted {{{1 ---------------------------------------------------------- */
-
/**
* g_thread_foreach:
* @thread_func: function to call for all #GThread structures
}
}
-/**
- * g_thread_get_initialized:
- *
- * Indicates if g_thread_init() has been called.
- *
- * Returns: %TRUE if threads have been initialized.
- *
- * Since: 2.20
- */
-gboolean
-g_thread_get_initialized (void)
-{
- return g_thread_supported ();
-}
+/* GMutex {{{1 ------------------------------------------------------ */
/**
* g_mutex_new:
g_slice_free (GMutex, mutex);
}
+/* GCond {{{1 ------------------------------------------------------ */
+
/**
* g_cond_new:
*
g_slice_free (GCond, cond);
}
+/* GPrivate {{{1 ------------------------------------------------------ */
+
/**
* g_private_new:
* @destructor: a function to destroy the data keyed to
return key;
}
-/* vim: set foldmethod=marker: */
+ /* vim: set foldmethod=marker: */