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 337cfa5fce112326e50b4349b0b696c8bb050b6e..33c64e8642d62fb34338fa7c3808bdcd63cedd9d 100644
(file)
--- a/
libchimara/chimara-glk.c
+++ b/
libchimara/chimara-glk.c
@@
-1236,8
+1236,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);
}