From 380006a6f4190262f419e4f67c59363b88773124 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 16 Mar 2010 18:03:01 +0000 Subject: *** empty log message *** --- ev.pod | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/ev.pod b/ev.pod index 33c58f4..88340ac 100644 --- a/ev.pod +++ b/ev.pod @@ -569,11 +569,9 @@ fds): =item struct ev_loop *ev_loop_new (unsigned int flags) Similar to C, but always creates a new event loop that is -always distinct from the default loop. Unlike the default loop, it cannot -handle signal and child watchers, and attempts to do so will be greeted by -undefined behaviour (or a failed assertion if assertions are enabled). +always distinct from the default loop. -Note that this function I thread-safe, and the recommended way to use +Note that this function I thread-safe, and one common way to use libev with threads is indeed to create one loop per thread, and using the default loop in the "main" or "initial" thread. @@ -585,13 +583,12 @@ Example: Try to create a event loop that uses epoll and nothing else. =item ev_default_destroy () -Destroys the default loop again (frees all memory and kernel state -etc.). None of the active event watchers will be stopped in the normal -sense, so e.g. C might still return true. It is your -responsibility to either stop all watchers cleanly yourself I -calling this function, or cope with the fact afterwards (which is usually -the easiest thing, you can just ignore the watchers and/or C them -for example). +Destroys the default loop (frees all memory and kernel state etc.). None +of the active event watchers will be stopped in the normal sense, so +e.g. C might still return true. It is your responsibility to +either stop all watchers cleanly yourself I calling this function, +or cope with the fact afterwards (which is usually the easiest thing, you +can just ignore the watchers and/or C them for example). Note that certain global state, such as signal state (and installed signal handlers), will not be freed by this function, and related watchers (such -- cgit v1.2.3