+2001-02-26 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
+
+ * gthreadpool.c (g_thread_pool_thread_proxy): Make
+ max_unused_threads work for -1 as well.
+
2001-02-23 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* gthread.h (struct _GThread): Change the order to match the order
+2001-02-26 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
+
+ * gthreadpool.c (g_thread_pool_thread_proxy): Make
+ max_unused_threads work for -1 as well.
+
2001-02-23 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* gthread.h (struct _GThread): Change the order to match the order
+2001-02-26 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
+
+ * gthreadpool.c (g_thread_pool_thread_proxy): Make
+ max_unused_threads work for -1 as well.
+
2001-02-23 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* gthread.h (struct _GThread): Change the order to match the order
+2001-02-26 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
+
+ * gthreadpool.c (g_thread_pool_thread_proxy): Make
+ max_unused_threads work for -1 as well.
+
2001-02-23 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* gthread.h (struct _GThread): Change the order to match the order
+2001-02-26 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
+
+ * gthreadpool.c (g_thread_pool_thread_proxy): Make
+ max_unused_threads work for -1 as well.
+
2001-02-23 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* gthread.h (struct _GThread): Change the order to match the order
+2001-02-26 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
+
+ * gthreadpool.c (g_thread_pool_thread_proxy): Make
+ max_unused_threads work for -1 as well.
+
2001-02-23 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* gthread.h (struct _GThread): Change the order to match the order
+2001-02-26 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
+
+ * gthreadpool.c (g_thread_pool_thread_proxy): Make
+ max_unused_threads work for -1 as well.
+
2001-02-23 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* gthread.h (struct _GThread): Change the order to match the order
+2001-02-26 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
+
+ * gthreadpool.c (g_thread_pool_thread_proxy): Make
+ max_unused_threads work for -1 as well.
+
2001-02-23 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* gthread.h (struct _GThread): Change the order to match the order
g_async_queue_lock (unused_thread_queue[priority]);
G_LOCK (unused_threads);
- if (unused_threads >= max_unused_threads)
+ if (unused_threads >= max_unused_threads && max_unused_threads != -1)
{
G_UNLOCK (unused_threads);
g_async_queue_unlock (unused_thread_queue[priority]);
g_async_queue_lock (unused_thread_queue[priority]);
G_LOCK (unused_threads);
- if (unused_threads >= max_unused_threads)
+ if (unused_threads >= max_unused_threads && max_unused_threads != -1)
{
G_UNLOCK (unused_threads);
g_async_queue_unlock (unused_thread_queue[priority]);