diff options
author | root <root> | 2009-12-29 13:11:00 +0000 |
---|---|---|
committer | root <root> | 2009-12-29 13:11:00 +0000 |
commit | 8677f079b7fe2b47d72613d15a71d7b27f14c5eb (patch) | |
tree | 9f91917fd68c0260752af4f9bdbea021832e6172 /ev.pod | |
parent | 48be09ae804dedbb4c1049607eac8e0083cdc60e (diff) |
*** empty log message ***
Diffstat (limited to 'ev.pod')
-rw-r--r-- | ev.pod | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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<ev_loop> will not return on its own. -If you have a watcher you never unregister that should not keep C<ev_loop> -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<ev_loop> from +returning. In such a case, call C<ev_unref> after starting, and C<ev_ref> +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<ev_loop> from |