Using POLLPRI with EVBACKEND_POLL backend?

Marc Lehmann schmorp at schmorp.de
Wed Nov 16 01:13:27 CET 2011


On Tue, Nov 15, 2011 at 07:06:24PM -0500, Marco Fonseca <marco.fonseca at earthlink.net> wrote:
> Is there a (recommended) way to use POLLPRI with EVBACKEND_POLL backend?

No, libev doesn't expose any os-specifics via its backends.

You would have to roll your own for this, for exmaple using epoll on a new
enough kernel and waiting for the epoll fd.

> >From what I've seen it doesn't seem possible without a change to libev.

Right, libev tries to be very portable, which linux-only sysfs is not ;)

-- 
                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_              http://www.deliantra.net
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      schmorp at schmorp.de
      -=====/_/_//_/\_,_/ /_/\_\



More information about the libev mailing list