… | |
… | |
310 | /* bits for ev_default_loop and ev_loop_new */ |
310 | /* bits for ev_default_loop and ev_loop_new */ |
311 | /* the default */ |
311 | /* the default */ |
312 | #define EVFLAG_AUTO 0x00000000UL /* not quite a mask */ |
312 | #define EVFLAG_AUTO 0x00000000UL /* not quite a mask */ |
313 | /* flag bits */ |
313 | /* flag bits */ |
314 | #define EVFLAG_NOENV 0x01000000UL /* do NOT consult environment */ |
314 | #define EVFLAG_NOENV 0x01000000UL /* do NOT consult environment */ |
|
|
315 | #define EVFLAG_FORKCHECK 0x02000000UL /* check for a fork in each iteration */ |
315 | /* method bits to be ored together */ |
316 | /* method bits to be ored together */ |
316 | #define EVBACKEND_SELECT 0x00000001UL /* about anywhere */ |
317 | #define EVBACKEND_SELECT 0x00000001UL /* about anywhere */ |
317 | #define EVBACKEND_POLL 0x00000002UL /* !win */ |
318 | #define EVBACKEND_POLL 0x00000002UL /* !win */ |
318 | #define EVBACKEND_EPOLL 0x00000004UL /* linux */ |
319 | #define EVBACKEND_EPOLL 0x00000004UL /* linux */ |
319 | #define EVBACKEND_KQUEUE 0x00000008UL /* bsd */ |
320 | #define EVBACKEND_KQUEUE 0x00000008UL /* bsd */ |
… | |
… | |
385 | /* you can call it in either the parent or the child */ |
386 | /* you can call it in either the parent or the child */ |
386 | /* you can actually call it at any time, anywhere :) */ |
387 | /* you can actually call it at any time, anywhere :) */ |
387 | void ev_default_fork (void); |
388 | void ev_default_fork (void); |
388 | |
389 | |
389 | unsigned int ev_backend (EV_P); |
390 | unsigned int ev_backend (EV_P); |
|
|
391 | unsigned int ev_loop_count (EV_P); |
390 | #endif |
392 | #endif |
391 | |
393 | |
392 | #define EVLOOP_NONBLOCK 1 /* do not block/wait */ |
394 | #define EVLOOP_NONBLOCK 1 /* do not block/wait */ |
393 | #define EVLOOP_ONESHOT 2 /* block *once* only */ |
395 | #define EVLOOP_ONESHOT 2 /* block *once* only */ |
394 | #define EVUNLOOP_CANCEL 0 /* undo unloop */ |
396 | #define EVUNLOOP_CANCEL 0 /* undo unloop */ |