[openib-general] Re: user event processing question...

Roland Dreier rolandd at cisco.com
Thu Sep 15 17:06:51 PDT 2005


    Arlin> I am running into some mutli-threaded issues with blocking
    Arlin> get_event calls. There is a window of oppurtunity where a
    Arlin> destroy can remove the event between the time my poll wakes
    Arlin> up and the time I call get_event which results in a
    Arlin> blocking get_event call. Any suggestions, other then
    Arlin> switching between non-blocking and blocking in my
    Arlin> processing thread, would be appreciated.

I guess you could just set the file descriptors to always be
non-blocking.  You might get EAGAIN back from the get event calls
sometimes but that doesn't seem like a real issue.

 - R.



More information about the general mailing list