diff options
author | root <root> | 2008-09-19 03:52:56 +0000 |
---|---|---|
committer | root <root> | 2008-09-19 03:52:56 +0000 |
commit | 21677667c48f905e6efd47ad5c9bfe908f1259ef (patch) | |
tree | a301a21777ee94dc81d5cceee8510dce1f76ac5e | |
parent | fc3dbcda5360f1a0aa528eed8737d6ce370e665c (diff) |
*** empty log message ***
-rw-r--r-- | ev.pod | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -3283,11 +3283,15 @@ Choosing a model is hard - look around, learn, know that usually you can do better than you currently do :-) =item * often you need to talk to some other thread which blocks in the -event loop - C<ev_async> watchers can be used to wake them up from other -threads safely (or from signal contexts...). +event loop. + +C<ev_async> watchers can be used to wake them up from other threads safely +(or from signal contexts...). -=item * some watcher types are only supported in the default loop - use -C<ev_async> watchers to tell your other loops about any such events. +An example use would be to communicate signals or other events that only +work in the default loop by registering the signal watcher with the +default loop and triggering an C<ev_async> watcher from the default loop +watcher callback into the event loop interested in the signal. =back |