ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libev/ev.pod
(Generate patch)

Comparing libev/ev.pod (file contents):
Revision 1.181 by root, Fri Sep 19 03:47:50 2008 UTC vs.
Revision 1.182 by root, Fri Sep 19 03:52:56 2008 UTC

3281 3281
3282Choosing a model is hard - look around, learn, know that usually you can do 3282Choosing a model is hard - look around, learn, know that usually you can do
3283better than you currently do :-) 3283better than you currently do :-)
3284 3284
3285=item * often you need to talk to some other thread which blocks in the 3285=item * often you need to talk to some other thread which blocks in the
3286event loop.
3287
3286event loop - C<ev_async> watchers can be used to wake them up from other 3288C<ev_async> watchers can be used to wake them up from other threads safely
3287threads safely (or from signal contexts...). 3289(or from signal contexts...).
3288 3290
3289=item * some watcher types are only supported in the default loop - use 3291An example use would be to communicate signals or other events that only
3290C<ev_async> watchers to tell your other loops about any such events. 3292work in the default loop by registering the signal watcher with the
3293default loop and triggering an C<ev_async> watcher from the default loop
3294watcher callback into the event loop interested in the signal.
3291 3295
3292=back 3296=back
3293 3297
3294=head2 COROUTINES 3298=head2 COROUTINES
3295 3299

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines