Value | Meaning |
---|---|
EV_FEATURE_ET0x01 | Require an event method that allows edge-triggered events with EV_ET. |
EV_FEATURE_O10x02 | Require an event method where having one event triggered among * many is approximately an O(1) operation. This excludes (for * example) select and poll, which are approximately O(N) for N * equal to the total number of possible events. |
EV_FEATURE_FDS0x04 | Require an event method that allows file descriptors as well as * sockets. |
A flag used to describe which features an event_base (must) provide.
Because of OS limitations, not every Libevent backend supports every possible feature. You can use this type with event_config_require_features() to tell Libevent to only proceed if your event_base implements a given feature, and you can receive this type from event_base_get_features() to see which features are available.