[glib] GRand: Make sure to g_thread_init_glib()
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] GRand: Make sure to g_thread_init_glib()
- Date: Fri, 9 Sep 2011 17:40:14 +0000 (UTC)
commit b6a2f502f28b112d791c8834b4ff7e5c8aa0fcd5
Author: Ryan Lortie <desrt desrt ca>
Date: Fri Sep 9 13:39:22 2011 -0400
GRand: Make sure to g_thread_init_glib()
The last commit should g_thread_init_glib() before attempting to use
GOnce.
glib/grand.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/glib/grand.c b/glib/grand.c
index 1e50edd..21dd728 100644
--- a/glib/grand.c
+++ b/glib/grand.c
@@ -133,6 +133,8 @@ get_random_version (void)
static gsize initialized = FALSE;
static guint random_version;
+ g_thread_init_glib ();
+
if (g_once_init_enter (&initialized))
{
const gchar *version_string = g_getenv ("G_RANDOM_VERSION");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]