| 259 | #define LAZY_QUEUE_INIT { { compare_commits_by_commit_date }, false } |
| 260 | |
| 261 | static void *lazy_queue_get(struct lazy_queue *queue) |
| 262 | { |
| 263 | if (queue->get_pending) |
| 264 | prio_queue_get(&queue->queue); |
| 265 | else |
| 266 | queue->get_pending = true; |
| 267 | return prio_queue_peek(&queue->queue); |
| 268 | } |
| 269 | |
| 270 | static void lazy_queue_put(struct lazy_queue *queue, void *thing) |
| 271 | { |
no test coverage detected