projects
/
projects
/
chimara
/
chimara.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use g_thread_try_new() instead of g_thread_create()
[projects/chimara/chimara.git]
/
libchimara
/
chimara-glk.c
diff --git
a/libchimara/chimara-glk.c
b/libchimara/chimara-glk.c
index b8926dcab94bea86d9619c9100b1747dc66714c0..88a05612881da451c5fdb548e449b96c270145f2 100644
(file)
--- a/
libchimara/chimara-glk.c
+++ b/
libchimara/chimara-glk.c
@@
-1235,8
+1235,8
@@
chimara_glk_run(ChimaraGlk *glk, const gchar *plugin, int argc, char *argv[], GE
g_object_notify(G_OBJECT(glk), "program-name");
/* Run in a separate thread */
g_object_notify(G_OBJECT(glk), "program-name");
/* Run in a separate thread */
- priv->thread = g_thread_
create((GThreadFunc)glk_enter, startup, TRUE
, error);
-
+ priv->thread = g_thread_
try_new("glk", (GThreadFunc)glk_enter, startup
, error);
+
return !(priv->thread == NULL);
}
return !(priv->thread == NULL);
}