MCPcopy Create free account
hub / github.com/git/git / lazy_queue_get

Function lazy_queue_get

builtin/describe.c:261–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259#define LAZY_QUEUE_INIT { { compare_commits_by_commit_date }, false }
260
261static 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
270static void lazy_queue_put(struct lazy_queue *queue, void *thing)
271{

Callers 2

finish_depth_computationFunction · 0.85
describe_commitFunction · 0.85

Calls 2

prio_queue_getFunction · 0.85
prio_queue_peekFunction · 0.85

Tested by

no test coverage detected