Beispiel #1
0
    void flipQueues(void)
    {
        updateQ.fetch_xor(1);

        /* Clear the update queue afresh. */
        queues[updateQ.load()].foreach([](std::shared_ptr<QueueType>& queue)
        {
            queue->clear();
        });
    }