Lines Matching refs:d
284 func (d *toolStatus) SetTotalActions(total int) {
287 d.lock.Lock()
288 if total >= d.counts.StartedActions && total != d.counts.TotalActions {
289 diff = total - d.counts.TotalActions
290 d.counts.TotalActions = total
292 d.lock.Unlock()
295 d.status.updateTotalActions(diff)
299 func (d *toolStatus) StartAction(action *Action) {
302 d.lock.Lock()
303 d.counts.RunningActions += 1
304 d.counts.StartedActions += 1
306 if d.counts.StartedActions > d.counts.TotalActions {
307 totalDiff = d.counts.StartedActions - d.counts.TotalActions
308 d.counts.TotalActions = d.counts.StartedActions
310 d.lock.Unlock()
313 d.status.updateTotalActions(totalDiff)
315 d.status.startAction(action)
318 func (d *toolStatus) FinishAction(result ActionResult) {
319 d.lock.Lock()
320 d.counts.RunningActions -= 1
321 d.counts.FinishedActions += 1
322 d.lock.Unlock()
324 d.status.finishAction(result)
327 func (d *toolStatus) Verbose(msg string) {
328 d.status.message(VerboseLvl, msg)
330 func (d *toolStatus) Status(msg string) {
331 d.status.message(StatusLvl, msg)
333 func (d *toolStatus) Print(msg string) {
334 d.status.message(PrintLvl, msg)
336 func (d *toolStatus) Error(msg string) {
337 d.status.message(ErrorLvl, msg)
340 func (d *toolStatus) Finish() {
341 d.lock.Lock()
342 defer d.lock.Unlock()
344 if d.counts.TotalActions != d.counts.StartedActions {
345 d.status.updateTotalActions(d.counts.StartedActions - d.counts.TotalActions)
349 d.counts.RunningActions = 0
350 d.counts.TotalActions = d.counts.StartedActions