From b4b8cd662b359e1f3dd44b3bea5a8ab02218b461 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 24 Nov 2007 07:20:42 +0000 Subject: [PATCH 1/1] *** empty log message *** --- ev.3 | 8 ++++++-- ev.html | 10 +++++++--- ev.pod | 8 ++++++-- 3 files changed, 19 insertions(+), 7 deletions(-) diff --git a/ev.3 b/ev.3 index ba07a61..d9628a2 100644 --- a/ev.3 +++ b/ev.3 @@ -460,8 +460,12 @@ Example: try to create a event loop that uses epoll and nothing else. .IP "ev_default_destroy ()" 4 .IX Item "ev_default_destroy ()" Destroys the default loop again (frees all memory and kernel state -etc.). This stops all registered event watchers (by not touching them in -any way whatsoever, although you cannot rely on this :). +etc.). None of the active event watchers will be stopped in the normal +sense, so e.g. \f(CW\*(C`ev_is_active\*(C'\fR might still return true. It is your +responsibility to either stop all watchers cleanly yoursef \fIbefore\fR +calling this function, or cope with the fact afterwards (which is usually +the easiest thing, youc na just ignore the watchers and/or \f(CW\*(C`free ()\*(C'\fR them +for example). .IP "ev_loop_destroy (loop)" 4 .IX Item "ev_loop_destroy (loop)" Like \f(CW\*(C`ev_default_destroy\*(C'\fR, but destroys an event loop created by an diff --git a/ev.html b/ev.html index 2a99b11..b6e3e6e 100644 --- a/ev.html +++ b/ev.html @@ -6,7 +6,7 @@ - + @@ -366,8 +366,12 @@ undefined behaviour (or a failed assertion if assertions are enabled).

ev_default_destroy ()

Destroys the default loop again (frees all memory and kernel state -etc.). This stops all registered event watchers (by not touching them in -any way whatsoever, although you cannot rely on this :).

+etc.). None of the active event watchers will be stopped in the normal +sense, so e.g. ev_is_active might still return true. It is your +responsibility to either stop all watchers cleanly yoursef before +calling this function, or cope with the fact afterwards (which is usually +the easiest thing, youc na just ignore the watchers and/or free () them +for example).

ev_loop_destroy (loop)
diff --git a/ev.pod b/ev.pod index ac54275..0bb2074 100644 --- a/ev.pod +++ b/ev.pod @@ -325,8 +325,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.). This stops all registered event watchers (by not touching them in -any way whatsoever, although you cannot rely on this :). +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 yoursef I +calling this function, or cope with the fact afterwards (which is usually +the easiest thing, youc na just ignore the watchers and/or C them +for example). =item ev_loop_destroy (loop) -- 2.43.0