This formalises the queue-completed interface, allowing parts outside the queuerun machinery to cleanly be notified when a queue is completed, and relieving the queuerun-perhaps-step of the need to know what to do for the end of any particular walker's queue.
Currently there is still only one walker, `plan'. Signed-off-by: Ian Jackson <ian.jack...@eu.citrix.com> --- ms-queuedaemon | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ms-queuedaemon b/ms-queuedaemon index 779ede0..1def285 100755 --- a/ms-queuedaemon +++ b/ms-queuedaemon @@ -172,6 +172,11 @@ proc runneeded-perhaps-start {} { queuerun-start plan } +proc queuerun-finished/plan {} { + runneeded-ensure-will 0 + report-plan plan +} + proc runneeded-ensure-polling {} { log-event runneeded-ensure-polling global polling_after queue c @@ -245,8 +250,7 @@ proc queuerun-perhaps-step {w} { if {![llength $queue_running]} { unset queue_running - runneeded-ensure-will 0 - report-plan $w + queuerun-finished/$w return } -- 1.7.10.4 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel