Only g_system_thread_free() our own threads
authorRyan Lortie <desrt@desrt.ca>
Thu, 13 Oct 2011 03:16:49 +0000 (23:16 -0400)
committerRyan Lortie <desrt@desrt.ca>
Thu, 13 Oct 2011 03:19:06 +0000 (23:19 -0400)
commitdfd466979be8ab93d7c569c3e5199a02d03671e8
tree0ba9ec38ff4f972e3a503c038b1d4ec45060f166
parenta5800ef336661e51db019d7bc4b98b184b06ba86
Only g_system_thread_free() our own threads

Keep track of if we created a thread for ourselves or if the GThread*
was allocated in response to g_thread_self() on a previously-unknown
thread.

Only call g_system_thread_free() in the first case.
glib/gthread.c
glib/gthreadprivate.h