* Set a call to Cache_process_queue from the main cycle. */
| 1379 | * Set a call to Cache_process_queue from the main cycle. |
| 1380 | */ |
| 1381 | static void Cache_delayed_process_queue(CacheEntry_t *entry) |
| 1382 | { |
| 1383 | /* there's no need to repeat entries in the queue */ |
| 1384 | if (!dList_find(DelayedQueue, entry)) |
| 1385 | dList_append(DelayedQueue, entry); |
| 1386 | |
| 1387 | if (DelayedQueueIdleId == 0) { |
| 1388 | _MSG(" Setting timeout callback\n"); |
| 1389 | a_Timeout_add(0.0, Cache_delayed_process_queue_callback, NULL); |
| 1390 | DelayedQueueIdleId = 1; |
| 1391 | } |
| 1392 | } |
| 1393 | |
| 1394 | /** |
| 1395 | * Last Client for this entry? |
no test coverage detected