… | |
… | |
24 | *stash_signal, |
24 | *stash_signal, |
25 | *stash_idle, |
25 | *stash_idle, |
26 | *stash_prepare, |
26 | *stash_prepare, |
27 | *stash_check, |
27 | *stash_check, |
28 | *stash_child; |
28 | *stash_child; |
|
|
29 | |
|
|
30 | #ifndef SIG_SIZE |
|
|
31 | /* kudos to Slaven Rezic for the idea */ |
|
|
32 | static char sig_size [] = { SIG_NUM }; |
|
|
33 | # define SIG_SIZE (sizeof (sig_size) + 1) |
|
|
34 | #endif |
29 | |
35 | |
30 | static int |
36 | static int |
31 | sv_signum (SV *sig) |
37 | sv_signum (SV *sig) |
32 | { |
38 | { |
33 | int signum; |
39 | int signum; |
… | |
… | |
251 | |
257 | |
252 | const_iv (EV, METHOD_AUTO) |
258 | const_iv (EV, METHOD_AUTO) |
253 | const_iv (EV, METHOD_SELECT) |
259 | const_iv (EV, METHOD_SELECT) |
254 | const_iv (EV, METHOD_POLL) |
260 | const_iv (EV, METHOD_POLL) |
255 | const_iv (EV, METHOD_EPOLL) |
261 | const_iv (EV, METHOD_EPOLL) |
|
|
262 | const_iv (EV, METHOD_KQUEUE) |
|
|
263 | const_iv (EV, METHOD_DEVPOLL) |
|
|
264 | const_iv (EV, METHOD_PORT) |
256 | const_iv (EV, METHOD_ANY) |
265 | const_iv (EV, METHOD_ANY) |
257 | }; |
266 | }; |
258 | |
267 | |
259 | for (civ = const_iv + sizeof (const_iv) / sizeof (const_iv [0]); civ-- > const_iv; ) |
268 | for (civ = const_iv + sizeof (const_iv) / sizeof (const_iv [0]); civ-- > const_iv; ) |
260 | newCONSTSUB (stash, (char *)civ->name, newSViv (civ->iv)); |
269 | newCONSTSUB (stash, (char *)civ->name, newSViv (civ->iv)); |
… | |
… | |
321 | OUTPUT: |
330 | OUTPUT: |
322 | RETVAL |
331 | RETVAL |
323 | |
332 | |
324 | NV ev_time () |
333 | NV ev_time () |
325 | |
334 | |
326 | void ev_init (int methods = EVMETHOD_AUTO) |
335 | int ev_init (int methods = EVMETHOD_AUTO) |
327 | |
336 | |
328 | void ev_loop (int flags = 0) |
337 | void ev_loop (int flags = 0) |
329 | |
338 | |
330 | void ev_loop_done (int value = 1) |
339 | void ev_loop_done (int value = 1) |
331 | CODE: |
340 | CODE: |