Lines Matching refs:d
315 func (d *toolStatus) SetTotalActions(total int) {
318 d.lock.Lock()
319 if total >= d.counts.StartedActions && total != d.counts.TotalActions {
320 diff = total - d.counts.TotalActions
321 d.counts.TotalActions = total
323 d.lock.Unlock()
326 d.status.updateTotalActions(diff)
330 func (d *toolStatus) StartAction(action *Action) {
333 d.lock.Lock()
334 d.counts.RunningActions += 1
335 d.counts.StartedActions += 1
337 if d.counts.StartedActions > d.counts.TotalActions {
338 totalDiff = d.counts.StartedActions - d.counts.TotalActions
339 d.counts.TotalActions = d.counts.StartedActions
341 d.lock.Unlock()
344 d.status.updateTotalActions(totalDiff)
346 d.status.startAction(action)
349 func (d *toolStatus) FinishAction(result ActionResult) {
350 d.lock.Lock()
351 d.counts.RunningActions -= 1
352 d.counts.FinishedActions += 1
353 d.lock.Unlock()
355 d.status.finishAction(result)
358 func (d *toolStatus) Verbose(msg string) {
359 d.status.message(VerboseLvl, msg)
361 func (d *toolStatus) Status(msg string) {
362 d.status.message(StatusLvl, msg)
364 func (d *toolStatus) Print(msg string) {
365 d.status.message(PrintLvl, msg)
367 func (d *toolStatus) Error(msg string) {
368 d.status.message(ErrorLvl, msg)
371 func (d *toolStatus) Finish() {
372 d.lock.Lock()
373 defer d.lock.Unlock()
375 if d.counts.TotalActions != d.counts.StartedActions {
376 d.status.updateTotalActions(d.counts.StartedActions - d.counts.TotalActions)
380 d.counts.RunningActions = 0
381 d.counts.TotalActions = d.counts.StartedActions