Boost logo

Boost :

Subject: [boost] asio::epoll_reactor::complete_operations_and_timers() - thread saftey
From: Hite, Christopher (Christopher.Hite_at_[hidden])
Date: 2012-06-04 06:37:21


I thought I'd take a look at the epoll_reactor implementation. I thinking of using asio proactor style code to use kernel bypass libraries.

I wanted to see how you do async IO with a pool of threads.

I think I see a bug. None of the operations there done outside of the lock seem thread safe. They unsafely modify linked lists.

    lock.unlock();
    read_op_queue_.complete_operations();
    write_op_queue_.complete_operations();
    except_op_queue_.complete_operations();

Chris


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk