This is going to want to do something more complicated shortly.
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
---
v2: Fix a whitespace error
set thinking_after [after [expr {$c(QueueThoughtsTimeout) * 1000}] \
queue-thoughts-timedout $w]
- for-chan $thinking {
- puts-chan $thinking "!OK think"
- }
+
+ notify-to-think $w $thinking
}
proc report-plan {w} {
puts-chan $chan "OK unwait $res"
}
+proc notify-to-think {w thinking} {
+ for-chan $thinking {
+ puts-chan $thinking "!OK think"
+ }
+}
+
#---------- general stuff ----------
proc banner {chan} {