MCPcopy Create free account
hub / github.com/1a1a11a/libCacheSim / pqueue_peek

Function pqueue_peek

libCacheSim/dataStructure/pqueue.c:229–237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

227
228
229void *
230pqueue_peek(pqueue_t *q)
231{
232 void *d;
233 if (!q || q->size == 1)
234 return NULL;
235 d = q->d[1];
236 return d;
237}
238
239
240void

Callers 2

Size_to_evictFunction · 0.85
Belady_to_evictFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected