… | |
… | |
995 | CODE: |
995 | CODE: |
996 | { |
996 | { |
997 | RETVAL = w->events; |
997 | RETVAL = w->events; |
998 | |
998 | |
999 | if (items > 1) |
999 | if (items > 1) |
1000 | RESET (io, w, (w, w->fd, new_events)); |
1000 | { |
|
|
1001 | int active = ev_is_active (w); |
|
|
1002 | if (active) STOP (io, w); |
|
|
1003 | ev_io_modify (w, new_events); |
|
|
1004 | if (active) START (io, w); |
|
|
1005 | } |
1001 | } |
1006 | } |
1002 | OUTPUT: |
1007 | OUTPUT: |
1003 | RETVAL |
1008 | RETVAL |
1004 | |
1009 | |
1005 | MODULE = EV PACKAGE = EV::Signal PREFIX = ev_signal_ |
1010 | MODULE = EV PACKAGE = EV::Signal PREFIX = ev_signal_ |