(file string, size int64, modified time.Time)
| 28 | } |
| 29 | |
| 30 | func (q *jobQueue) Push(file string, size int64, modified time.Time) { |
| 31 | q.mut.Lock() |
| 32 | // The range of UnixNano covers a range of reasonable timestamps. |
| 33 | q.queued = append(q.queued, jobQueueEntry{file, size, modified.UnixNano()}) |
| 34 | q.mut.Unlock() |
| 35 | } |
| 36 | |
| 37 | func (q *jobQueue) Pop() (string, bool) { |
| 38 | q.mut.Lock() |