GThread: handle thread names safely
authorMatthias Clasen <mclasen@redhat.com>
Tue, 15 Nov 2011 03:18:13 +0000 (22:18 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 15 Nov 2011 03:18:13 +0000 (22:18 -0500)
commit7c0ee79e348cfa3711ecf74f1c0e4d9a2e29864e
treebaaefe03299747f3231867a85272fd18c62c3e4a
parent375015018bb16cdd02708e1df0953d91916033ca
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
glib/gthread.c
glib/gthreadprivate.h
glib/tests/thread.c