… | |
… | |
1792 | event loop blocks next and before C<ev_check> watchers are being called, |
1792 | event loop blocks next and before C<ev_check> watchers are being called, |
1793 | and only in the child after the fork. If whoever good citizen calling |
1793 | and only in the child after the fork. If whoever good citizen calling |
1794 | C<ev_default_fork> cheats and calls it in the wrong process, the fork |
1794 | C<ev_default_fork> cheats and calls it in the wrong process, the fork |
1795 | handlers will be invoked, too, of course. |
1795 | handlers will be invoked, too, of course. |
1796 | |
1796 | |
|
|
1797 | =head3 Watcher-Specific Functions and Data Members |
|
|
1798 | |
1797 | =over 4 |
1799 | =over 4 |
1798 | |
1800 | |
1799 | =item ev_fork_init (ev_signal *, callback) |
1801 | =item ev_fork_init (ev_signal *, callback) |
1800 | |
1802 | |
1801 | Initialises and configures the fork watcher - it has no parameters of any |
1803 | Initialises and configures the fork watcher - it has no parameters of any |
… | |
… | |
2017 | |
2019 | |
2018 | =item w->stop () |
2020 | =item w->stop () |
2019 | |
2021 | |
2020 | Stops the watcher if it is active. Again, no C<loop> argument. |
2022 | Stops the watcher if it is active. Again, no C<loop> argument. |
2021 | |
2023 | |
2022 | =item w->again () C<ev::timer>, C<ev::periodic> only |
2024 | =item w->again () (C<ev::timer>, C<ev::periodic> only) |
2023 | |
2025 | |
2024 | For C<ev::timer> and C<ev::periodic>, this invokes the corresponding |
2026 | For C<ev::timer> and C<ev::periodic>, this invokes the corresponding |
2025 | C<ev_TYPE_again> function. |
2027 | C<ev_TYPE_again> function. |
2026 | |
2028 | |
2027 | =item w->sweep () C<ev::embed> only |
2029 | =item w->sweep () (C<ev::embed> only) |
2028 | |
2030 | |
2029 | Invokes C<ev_embed_sweep>. |
2031 | Invokes C<ev_embed_sweep>. |
2030 | |
2032 | |
2031 | =item w->update () C<ev::stat> only |
2033 | =item w->update () (C<ev::stat> only) |
2032 | |
2034 | |
2033 | Invokes C<ev_stat_stat>. |
2035 | Invokes C<ev_stat_stat>. |
2034 | |
2036 | |
2035 | =back |
2037 | =back |
2036 | |
2038 | |
… | |
… | |
2056 | } |
2058 | } |
2057 | |
2059 | |
2058 | |
2060 | |
2059 | =head1 MACRO MAGIC |
2061 | =head1 MACRO MAGIC |
2060 | |
2062 | |
2061 | Libev can be compiled with a variety of options, the most fundemantal is |
2063 | Libev can be compiled with a variety of options, the most fundamantal |
2062 | C<EV_MULTIPLICITY>. This option determines whether (most) functions and |
2064 | of which is C<EV_MULTIPLICITY>. This option determines whether (most) |
2063 | callbacks have an initial C<struct ev_loop *> argument. |
2065 | functions and callbacks have an initial C<struct ev_loop *> argument. |
2064 | |
2066 | |
2065 | To make it easier to write programs that cope with either variant, the |
2067 | To make it easier to write programs that cope with either variant, the |
2066 | following macros are defined: |
2068 | following macros are defined: |
2067 | |
2069 | |
2068 | =over 4 |
2070 | =over 4 |