]> git.itanic.dy.fi Git - rrdd/commit
rrdtool: queue post_draw_cmd to be after images
authorTimo Kokkonen <timo.t.kokkonen@iki.fi>
Sat, 9 Jul 2016 18:10:04 +0000 (21:10 +0300)
committerTimo Kokkonen <timo.t.kokkonen@iki.fi>
Sat, 9 Jul 2016 18:27:13 +0000 (21:27 +0300)
commitf9ac5fe29213eb0ee00f53977913333a626c7998
tree9130108c446fbccad6cbd77d1dec12d02515950d
parent2cfe71697c0fe8d9bf6979c18702031765c03d4c
rrdtool: queue post_draw_cmd to be after images

The purpose of the post_draw_cmd is to execute something after the
rrdtool has drawn the images. Right now it executes the command
actually before drawing the images, as the command gets executed from
the high priority work that queued the image drawings.

This is not what we want. Therefore queue the post_draw_cmd to the
same low priority queue where the images are put. This guarantees that
the command does not begin too soon. On uniprocessors it is also
guaranteed that the command does not start executing before all of the
images are completed.

Signed-off-by: Timo Kokkonen <timo.t.kokkonen@iki.fi>
rrdtool.c