Lines Matching refs:d

332 func (d *toolStatus) SetTotalActions(total int) {
335 d.lock.Lock()
336 if total >= d.counts.StartedActions && total != d.counts.TotalActions {
337 diff = total - d.counts.TotalActions
338 d.counts.TotalActions = total
340 d.lock.Unlock()
343 d.status.updateTotalActions(diff)
347 func (d *toolStatus) SetEstimatedTime(estimatedTime time.Time) {
348 d.status.SetEstimatedTime(estimatedTime)
351 func (d *toolStatus) StartAction(action *Action) {
354 d.lock.Lock()
355 d.counts.RunningActions += 1
356 d.counts.StartedActions += 1
358 if d.counts.StartedActions > d.counts.TotalActions {
359 totalDiff = d.counts.StartedActions - d.counts.TotalActions
360 d.counts.TotalActions = d.counts.StartedActions
362 d.lock.Unlock()
365 d.status.updateTotalActions(totalDiff)
367 d.status.startAction(action)
370 func (d *toolStatus) FinishAction(result ActionResult) {
371 d.lock.Lock()
372 d.counts.RunningActions -= 1
373 d.counts.FinishedActions += 1
374 d.lock.Unlock()
376 d.status.finishAction(result)
379 func (d *toolStatus) Verbose(msg string) {
380 d.status.message(VerboseLvl, msg)
382 func (d *toolStatus) Status(msg string) {
383 d.status.message(StatusLvl, msg)
385 func (d *toolStatus) Print(msg string) {
386 d.status.message(PrintLvl, msg)
388 func (d *toolStatus) Error(msg string) {
389 d.status.message(ErrorLvl, msg)
392 func (d *toolStatus) Finish() {
393 d.lock.Lock()
394 defer d.lock.Unlock()
396 if d.counts.TotalActions != d.counts.StartedActions {
397 d.status.updateTotalActions(d.counts.StartedActions - d.counts.TotalActions)
401 d.counts.RunningActions = 0
402 d.counts.TotalActions = d.counts.StartedActions