From 8677f079b7fe2b47d72613d15a71d7b27f14c5eb Mon Sep 17 00:00:00 2001 From: root Date: Tue, 29 Dec 2009 13:11:00 +0000 Subject: *** empty log message *** --- ev.pod | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'ev.pod') diff --git a/ev.pod b/ev.pod index 5e0a8e8..9d01430 100644 --- a/ev.pod +++ b/ev.pod @@ -794,9 +794,10 @@ Ref/unref can be used to add or remove a reference count on the event loop: Every watcher keeps one reference, and as long as the reference count is nonzero, C will not return on its own. -If you have a watcher you never unregister that should not keep C -from returning, call ev_unref() after starting, and ev_ref() before -stopping it. +This is useful when you have a watcher that you never intend to +unregister, but that nevertheless should not keep C from +returning. In such a case, call C after starting, and C +before stopping it. As an example, libev itself uses this for its internal signal pipe: It is not visible to the libev user and should not keep C from -- cgit v1.2.3