common: mainloop support for edge-triggered I/O events.
authorKrisztian Litkey <krisztian.litkey@intel.com>
Wed, 25 Jun 2014 09:39:18 +0000 (12:39 +0300)
committerKrisztian Litkey <krisztian.litkey@intel.com>
Fri, 15 Aug 2014 12:28:40 +0000 (15:28 +0300)
commit3b73339f9cfab896b6986a01581eabcb04c65a0b
tree090014135fe5620e733a52e071221e7bdcc5ca8d
parentfe06f86ec8a28e5d73704f5aeab206dee1a79032
common: mainloop support for edge-triggered I/O events.

This patch adds support for specifying on a per-watch basis whether
I/O events should be level or edge-triggered and also for setting
and retrieving the default I/O event trigger mode.

Because we provide both default and per-watch settings, we need an
extra flag for indicating level-triggered mode for a watch when the
default is set to EPOLLET (MRP_IO_TRIGGER_EDGE). This makes the patch
slightly more complex than just providing the necessary enum flags.
src/common/mainloop.c
src/common/mainloop.h