Idle sources are now just a special case of a checked source.
struct wl_event_loop {
int epoll_fd;
struct wl_event_loop {
int epoll_fd;
- struct wl_list idle_list;
struct wl_list check_list;
};
struct wl_list check_list;
};
source->func = func;
source->base.data = data;
source->func = func;
source->base.data = data;
- wl_list_insert(loop->idle_list.prev, &source->base.link);
wl_event_source_check(&source->base);
return &source->base;
wl_event_source_check(&source->base);
return &source->base;
free(loop);
return NULL;
}
free(loop);
return NULL;
}
- wl_list_init(&loop->idle_list);
wl_list_init(&loop->check_list);
return loop;
wl_list_init(&loop->check_list);
return loop;