event_base_active_by_fd(struct event_base *base, evutil_socket_t fd, short events)
{
EVBASE_ACQUIRE_LOCK(base, th_base_lock);
- evmap_io_active_(base, fd, events);
+ evmap_io_active_(base, fd, events & (EV_READ|EV_WRITE|EV_TIMEOUT));
EVBASE_RELEASE_LOCK(base, th_base_lock);
}
/**
- Activates all events for the given fd and event mask.
+ Activates all pending events for the given fd and event mask.
- @param fd An fd or signal
- @param events One or more EV_* flags
+ @param base the event_base on which to activate the events.
+ @param fd An fd to active events on.
+ @param events One or more of EV_{READ,WRITE,TIMEOUT}.
*/
void event_base_active_by_fd(struct event_base *base, evutil_socket_t fd, short events);