GTask: Avoid resorting
authorMatthias Clasen <mclasen@redhat.com>
Thu, 18 Jun 2015 14:36:23 +0000 (10:36 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 29 Jun 2015 15:20:26 +0000 (08:20 -0700)
commite419e1c4e212b1195c8e531fd6eeb4a0b80108d3
tree7b56532668aa0aa6f1c623cc57bf1eff6330b768
parent9486f697bb3ed3b02fa2c82f50662fde7d77267e
GTask: Avoid resorting

When a task is cancelled, we want to move it to the front
of the queue - our sort function does that for us, but there
is no need to resort the entire queue here, we can just
move the one item and be done with it. This uses just-introduced
threadpool api for this purpose.

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