Hi Pranav, On Fri, Jul 24, 2015 at 11:36:29AM +0530, Pranav Kant <pranav913@gmail.com> wrote:
There doesn't seem to be any way to manipulate the queue that thread pool internally has, hence making it impossible to do this "task compression". We can switch to using async queue approach as mentioned by Tomaz, if this optimization is worth it, otherwise we can just stick to the existing implemented approach for the time being.
Given that a thread pool with one thread is basically such an async queue, I see no problems with this. Let's get back to this when we want to implement such a "cancel tile requests" feature in gtktiledviewer, which is not a priority at the moment. Regards, Miklos
Attachment:
signature.asc
Description: Digital signature