gthreadpool: set default max_unused_threads and max_idle_time values
authorDan Winship <danw@gnome.org>
Wed, 25 Jul 2012 18:41:04 +0000 (14:41 -0400)
committerDan Winship <danw@gnome.org>
Tue, 31 Jul 2012 18:37:56 +0000 (14:37 -0400)
commitb3f96373372771744a5ade73b2e897ec32365182
tree5fd64c578cc167d759f218801088326ebfbc0ea9
parent26056558be4656ee6e891a4fae5d4198de7519cf
gthreadpool: set default max_unused_threads and max_idle_time values

GThreadPool defaulted to 0 for max_unused_threads (meaning thread-pool
threads would exit immediately if there was not already another task
waiting for them), and 0 for max_idle_time (meaning unused threads
would linger forever, though this is only relevant if you changed
max_unused_threads).

However, GIOScheduler changed the global defaults to 2 and 15*1000,
respectively, arguing that these were more useful defaults. And they
are, so let's use them.

https://bugzilla.gnome.org/show_bug.cgi?id=661767
gio/gioscheduler.c
glib/gthreadpool.c