MCPcopy Create free account
hub / github.com/dillo-browser/dillo / Cache_delayed_process_queue_callback

Function Cache_delayed_process_queue_callback

src/cache.c:1362–1376  ·  view source on GitHub ↗

* Callback function for Cache_delayed_process_queue. */

Source from the content-addressed store, hash-verified

1360 * Callback function for Cache_delayed_process_queue.
1361 */
1362static void Cache_delayed_process_queue_callback(void *ptr)
1363{
1364 CacheEntry_t *entry;
1365 (void) ptr; /* Unused */
1366
1367 while ((entry = (CacheEntry_t *)dList_nth_data(DelayedQueue, 0))) {
1368 Cache_ref_data(entry);
1369 if ((entry = Cache_process_queue(entry))) {
1370 Cache_unref_data(entry);
1371 dList_remove(DelayedQueue, entry);
1372 }
1373 }
1374 DelayedQueueIdleId = 0;
1375 a_Timeout_remove();
1376}
1377
1378/**
1379 * Set a call to Cache_process_queue from the main cycle.

Callers

nothing calls this directly

Calls 6

dList_nth_dataFunction · 0.85
Cache_ref_dataFunction · 0.85
Cache_process_queueFunction · 0.85
Cache_unref_dataFunction · 0.85
dList_removeFunction · 0.85
a_Timeout_removeFunction · 0.85

Tested by

no test coverage detected