… | |
… | |
531 | responsibility to either stop all watchers cleanly yourself I<before> |
531 | responsibility to either stop all watchers cleanly yourself I<before> |
532 | calling this function, or cope with the fact afterwards (which is usually |
532 | calling this function, or cope with the fact afterwards (which is usually |
533 | the easiest thing, you can just ignore the watchers and/or C<free ()> them |
533 | the easiest thing, you can just ignore the watchers and/or C<free ()> them |
534 | for example). |
534 | for example). |
535 | |
535 | |
536 | Note that certain global state, such as signal state, will not be freed by |
536 | Note that certain global state, such as signal state (and installed signal |
537 | this function, and related watchers (such as signal and child watchers) |
537 | handlers), will not be freed by this function, and related watchers (such |
538 | would need to be stopped manually. |
538 | as signal and child watchers) would need to be stopped manually. |
539 | |
539 | |
540 | In general it is not advisable to call this function except in the |
540 | In general it is not advisable to call this function except in the |
541 | rare occasion where you really need to free e.g. the signal handling |
541 | rare occasion where you really need to free e.g. the signal handling |
542 | pipe fds. If you need dynamically allocated loops it is better to use |
542 | pipe fds. If you need dynamically allocated loops it is better to use |
543 | C<ev_loop_new> and C<ev_loop_destroy>). |
543 | C<ev_loop_new> and C<ev_loop_destroy>). |