void indexer_queue_deinit(struct indexer_queue **_queue) { struct indexer_queue *queue = *_queue; *_queue = NULL; i_assert(indexer_queue_is_empty(queue)); hash_table_destroy(&queue->requests); i_free(queue); }
static bool idle_die(void) { return indexer_queue_is_empty(queue) && !worker_pool_have_busy_connections(worker_pool); }