Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
229
void *
230
pqueue_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
240
void
Callers
2
Size_to_evict
Function · 0.85
Belady_to_evict
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected