summaryrefslogtreecommitdiff
path: root/glib/gthreadprivate.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2011-11-14 22:18:13 -0500
committerMatthias Clasen <mclasen@redhat.com>2011-11-14 22:18:13 -0500
commit7c0ee79e348cfa3711ecf74f1c0e4d9a2e29864e (patch)
treebaaefe03299747f3231867a85272fd18c62c3e4a /glib/gthreadprivate.h
parent375015018bb16cdd02708e1df0953d91916033ca (diff)
downloadglib-7c0ee79e348cfa3711ecf74f1c0e4d9a2e29864e.tar.gz
GThread: handle thread names safely
Avoid a race condition where the string may be freed before the new thread got around to using it. Also add a test for thread names. https://bugzilla.gnome.org/show_bug.cgi?id=663381
Diffstat (limited to 'glib/gthreadprivate.h')
-rw-r--r--glib/gthreadprivate.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/glib/gthreadprivate.h b/glib/gthreadprivate.h
index 3670b2f19..6b974debb 100644
--- a/glib/gthreadprivate.h
+++ b/glib/gthreadprivate.h
@@ -32,7 +32,7 @@ struct _GRealThread
gint ref_count;
gboolean ours;
- const gchar *name;
+ gchar *name;
gpointer retval;
};