Whitespace fixes

This commit is contained in:
Matthias Clasen 2011-10-02 09:59:26 -04:00
parent 3c02c64474
commit 6a31cc66cd

View File

@ -1213,27 +1213,27 @@ g_thread_cleanup (gpointer data)
* If it is, the structure is freed in g_thread_join() * If it is, the structure is freed in g_thread_join()
*/ */
if (!thread->thread.joinable) if (!thread->thread.joinable)
{ {
GRealThread *t, *p; GRealThread *t, *p;
G_LOCK (g_thread); G_LOCK (g_thread);
for (t = g_thread_all_threads, p = NULL; t; p = t, t = t->next) for (t = g_thread_all_threads, p = NULL; t; p = t, t = t->next)
{ {
if (t == thread) if (t == thread)
{ {
if (p) if (p)
p->next = t->next; p->next = t->next;
else else
g_thread_all_threads = t->next; g_thread_all_threads = t->next;
break; break;
} }
} }
G_UNLOCK (g_thread); G_UNLOCK (g_thread);
/* Just to make sure, this isn't used any more */ /* Just to make sure, this isn't used any more */
g_system_thread_assign (thread->system_thread, zero_thread); g_system_thread_assign (thread->system_thread, zero_thread);
g_free (thread); g_free (thread);
} }
} }
} }
@ -1420,13 +1420,13 @@ g_thread_join (GThread* thread)
for (t = g_thread_all_threads, p = NULL; t; p = t, t = t->next) for (t = g_thread_all_threads, p = NULL; t; p = t, t = t->next)
{ {
if (t == (GRealThread*) thread) if (t == (GRealThread*) thread)
{ {
if (p) if (p)
p->next = t->next; p->next = t->next;
else else
g_thread_all_threads = t->next; g_thread_all_threads = t->next;
break; break;
} }
} }
G_UNLOCK (g_thread); G_UNLOCK (g_thread);