gtask: don't deadlock when tasks block on other tasks
authorDan Winship <danw@gnome.org>
Sat, 15 Dec 2012 16:44:59 +0000 (11:44 -0500)
committerDan Winship <danw@gnome.org>
Tue, 18 Dec 2012 18:19:08 +0000 (13:19 -0500)
commit07bb8097e535eea27c5130c523f70759fb2ff45d
tree38efec5df60bdb6c374e8498e319401e98a48524
parent2149b29468bb99af3c29d5de61f75aad735082dc
gtask: don't deadlock when tasks block on other tasks

If tasks block waiting for other tasks to complete then the system can
end up starved for threads. Avoid this by bumping up max-threads in
that case.

This also reverts 7b1f8c58 and reverts max-threads for GTask's
GThreadPool back to 10.

https://bugzilla.gnome.org/show_bug.cgi?id=687223
gio/gtask.c
gio/tests/task.c