Renamed function to fit libev changes