gtask: Ignore errors from g_thread_pool_push()
authorPhilip Withnall <philip.withnall@collabora.co.uk>
Fri, 19 Sep 2014 07:54:33 +0000 (08:54 +0100)
committerPhilip Withnall <philip.withnall@collabora.co.uk>
Tue, 23 Sep 2014 07:08:45 +0000 (08:08 +0100)
commitf41ebebd3476e3e6887f11ed26672a39513c4f98
tree6b4052ac5ae5a6715ff481b00e275d9087cb5ae6
parent925913d8dd8f4f283265fb7b2e17fc3da4d06b3e
gtask: Ignore errors from g_thread_pool_push()

g_thread_pool_push() only returns an error if it fails to spawn a new
thread. However, it unconditionally adds the task to its worker queue,
so:
 • if _any_ threads exist in the pool, the task will eventually be
   handled; and
 • if _no_ threads exist in the pool, the task will be handled if one
   is eventually successfully spawned.
If no more threads are ever spawned, the process probably has bigger
problems than a single GTask which is taking forever to complete.

https://bugzilla.gnome.org/show_bug.cgi?id=736806
gio/gtask.c