… | |
… | |
271 | /* you can call this as often as you like */ |
271 | /* you can call this as often as you like */ |
272 | static struct ev_loop * |
272 | static struct ev_loop * |
273 | ev_default_loop (unsigned int flags) |
273 | ev_default_loop (unsigned int flags) |
274 | { |
274 | { |
275 | extern struct ev_loop *ev_default_loop_ptr; |
275 | extern struct ev_loop *ev_default_loop_ptr; |
276 | extern struct ev_loop *ev_default_loop_ (unsigned int flags); |
276 | extern struct ev_loop *ev_default_loop_init (unsigned int flags); |
277 | |
277 | |
278 | if (!ev_default_loop_ptr) |
278 | if (!ev_default_loop_ptr) |
279 | ev_default_loop_init (flags); |
279 | ev_default_loop_init (flags); |
280 | |
280 | |
281 | return ev_default_loop_ptr; |
281 | return ev_default_loop_ptr; |