Add updates its receiver by adding to it the values in ss.
(in Progress)
| 60 | |
| 61 | // Add updates its receiver by adding to it the values in ss. |
| 62 | func (p *Progress) Add(in Progress) { |
| 63 | if p != nil { |
| 64 | atomic.AddInt64(&p.BytesRead, in.BytesRead) |
| 65 | atomic.AddInt64(&p.BytesMatched, in.BytesMatched) |
| 66 | atomic.AddInt64(&p.RecordsRead, in.RecordsRead) |
| 67 | atomic.AddInt64(&p.RecordsMatched, in.RecordsMatched) |
| 68 | } |
| 69 | } |
| 70 | |
| 71 | func (p *Progress) Copy() Progress { |
| 72 | if p == nil { |