]> git.itanic.dy.fi Git - rrdd/commit
process: Introduce notify_job_request()
authorTimo Kokkonen <timo.t.kokkonen@iki.fi>
Sun, 11 Oct 2020 08:59:12 +0000 (11:59 +0300)
committerTimo Kokkonen <timo.t.kokkonen@iki.fi>
Sun, 11 Oct 2020 08:59:12 +0000 (11:59 +0300)
commitc4efc3e47819a857ecac6c2a3a39ba351001df33
tree7f747967dc35c476409c6babc5e1b59b5c32e8ef
parent782898ed3aabd9611386db6e72370d2cf7941a02
process: Introduce notify_job_request()

This function can be used to kick the main thread out of
poll_job_request() function in case someone wants to re-schedule rrd
processing.

As a starter, a notify call is added at the end of worker processing
when the last worker thread exits. The only purpose of this feature is
to make the main thread to print out the time of the next scheduled
job to be processed, making it just easier to follow the daemon as it
operates.

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