Skip to content
Browse files

Unlock the pool for all threads leaving it. (#78348)

2002-04-13  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* glib/gthreadpool.c (g_thread_pool_thread_proxy): Unlock the pool
	for all threads leaving it. (#78348)
  • Loading branch information...
1 parent 0dac3e9 commit 64855733d7e8fd60c5b279668b2cc48a3f121a83 Sebastian Wilhelmi committed with Sebastian Wilhelmi Apr 13, 2002
Showing with 40 additions and 4 deletions.
  1. +5 −0 ChangeLog
  2. +5 −0 ChangeLog.pre-2-10
  3. +5 −0 ChangeLog.pre-2-12
  4. +5 −0 ChangeLog.pre-2-2
  5. +5 −0 ChangeLog.pre-2-4
  6. +5 −0 ChangeLog.pre-2-6
  7. +5 −0 ChangeLog.pre-2-8
  8. +5 −4 glib/gthreadpool.c
View
5 ChangeLog
@@ -1,3 +1,8 @@
+2002-04-13 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
+
+ * glib/gthreadpool.c (g_thread_pool_thread_proxy): Unlock the pool
+ for all threads leaving it. (#78348)
+
2002-04-11 Matthias Clasen <maclas@gmx.de>
* tests/patterntest.c: Remove manual UTF-8 -> Latin1 conversion for
View
5 ChangeLog.pre-2-10
@@ -1,3 +1,8 @@
+2002-04-13 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
+
+ * glib/gthreadpool.c (g_thread_pool_thread_proxy): Unlock the pool
+ for all threads leaving it. (#78348)
+
2002-04-11 Matthias Clasen <maclas@gmx.de>
* tests/patterntest.c: Remove manual UTF-8 -> Latin1 conversion for
View
5 ChangeLog.pre-2-12
@@ -1,3 +1,8 @@
+2002-04-13 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
+
+ * glib/gthreadpool.c (g_thread_pool_thread_proxy): Unlock the pool
+ for all threads leaving it. (#78348)
+
2002-04-11 Matthias Clasen <maclas@gmx.de>
* tests/patterntest.c: Remove manual UTF-8 -> Latin1 conversion for
View
5 ChangeLog.pre-2-2
@@ -1,3 +1,8 @@
+2002-04-13 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
+
+ * glib/gthreadpool.c (g_thread_pool_thread_proxy): Unlock the pool
+ for all threads leaving it. (#78348)
+
2002-04-11 Matthias Clasen <maclas@gmx.de>
* tests/patterntest.c: Remove manual UTF-8 -> Latin1 conversion for
View
5 ChangeLog.pre-2-4
@@ -1,3 +1,8 @@
+2002-04-13 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
+
+ * glib/gthreadpool.c (g_thread_pool_thread_proxy): Unlock the pool
+ for all threads leaving it. (#78348)
+
2002-04-11 Matthias Clasen <maclas@gmx.de>
* tests/patterntest.c: Remove manual UTF-8 -> Latin1 conversion for
View
5 ChangeLog.pre-2-6
@@ -1,3 +1,8 @@
+2002-04-13 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
+
+ * glib/gthreadpool.c (g_thread_pool_thread_proxy): Unlock the pool
+ for all threads leaving it. (#78348)
+
2002-04-11 Matthias Clasen <maclas@gmx.de>
* tests/patterntest.c: Remove manual UTF-8 -> Latin1 conversion for
View
5 ChangeLog.pre-2-8
@@ -1,3 +1,8 @@
+2002-04-13 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
+
+ * glib/gthreadpool.c (g_thread_pool_thread_proxy): Unlock the pool
+ for all threads leaving it. (#78348)
+
2002-04-11 Matthias Clasen <maclas@gmx.de>
* tests/patterntest.c: Remove manual UTF-8 -> Latin1 conversion for
View
9 glib/gthreadpool.c
@@ -134,10 +134,9 @@ g_thread_pool_thread_proxy (gpointer data)
watcher = TRUE;
}
-
if (goto_global_pool)
{
- pool->num_threads--;
+ pool->num_threads--;
if (!pool->running && !pool->waiting)
{
@@ -146,9 +145,11 @@ g_thread_pool_thread_proxy (gpointer data)
g_async_queue_unlock (pool->queue);
g_thread_pool_free_internal (pool);
}
- else if (len == - pool->num_threads)
+ else
{
- g_thread_pool_wakeup_and_stop_all (pool);
+ if (len == - pool->num_threads)
+ g_thread_pool_wakeup_and_stop_all (pool);
+
g_async_queue_unlock (pool->queue);
}
}

0 comments on commit 6485573

Please sign in to comment.
Something went wrong with that request. Please try again.