Rename it accordingly.
{
        Query query;
        
        pcg64 generator(randomSeed());
        std::uniform_int_distribution<size_t> distribution(0, connection_entries.size() - 1);
        
        sigset_t sig_set;
        if (sigemptyset(&sig_set)
            || sigaddset(&sig_set, SIGINT)
            || pthread_sigmask(SIG_BLOCK, &sig_set, nullptr))
        {
            throwFromErrno("Cannot block signal.", ErrorCodes::CANNOT_BLOCK_SIGNAL);
        }
        while (true)
        {
            bool extracted = false;
            while (!extracted)
            {
                extracted = queue.tryPop(query, 100);
                if (shutdown || (max_iterations && queries_executed == max_iterations))
                {
                    return;
                }
            }
            const auto connection_index = distribution(generator);