Make sure g_thread_pool_stop_unused_threads() actually stops unused
authorMartyn James Russell <mr@src.gnome.org>
Fri, 7 Apr 2006 09:23:42 +0000 (09:23 +0000)
committerMartyn James Russell <mr@src.gnome.org>
Fri, 7 Apr 2006 09:23:42 +0000 (09:23 +0000)
commit6c6f17133dbdd47cfa7b6567e6a669bb210b55a2
tree590087e088b403ce4ea185afc2abad19d5f226ba
parent49cc2e2396a6f5cc554d6ebcdf37682942e0c4d8
Make sure g_thread_pool_stop_unused_threads() actually stops unused

* glib/gthreadpool.c: Make sure
g_thread_pool_stop_unused_threads() actually stops unused threads
and global limits (like max idle time and max unused threads) can
be set without creating a thread pool first. Fixed #335215 (patch
from Chris Wilson).

* tests/threadpool-test.c: Added two new tests, tests setting
global limits before creating a thread pool. The second test
makes sure unused threads are actually stopped when using the
g_thread_pool_stop_unused_threads().
ChangeLog
ChangeLog.pre-2-12
glib/gasyncqueue.c
glib/gasyncqueue.h
glib/gthreadpool.c
tests/threadpool-test.c