ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/EV/README
(Generate patch)

Comparing EV/README (file contents):
Revision 1.33 by root, Fri Jul 17 14:49:33 2009 UTC vs.
Revision 1.35 by root, Thu Dec 31 06:59:47 2009 UTC

366 the watcher isn't pending it does nothing and returns 0. 366 the watcher isn't pending it does nothing and returns 0.
367 367
368 $previous_state = $w->keepalive ($bool) 368 $previous_state = $w->keepalive ($bool)
369 Normally, "EV::loop" will return when there are no active watchers 369 Normally, "EV::loop" will return when there are no active watchers
370 (which is a "deadlock" because no progress can be made anymore). 370 (which is a "deadlock" because no progress can be made anymore).
371 This is convinient because it allows you to start your watchers (and 371 This is convenient because it allows you to start your watchers (and
372 your jobs), call "EV::loop" once and when it returns you know that 372 your jobs), call "EV::loop" once and when it returns you know that
373 all your jobs are finished (or they forgot to register some watchers 373 all your jobs are finished (or they forgot to register some watchers
374 for their task :). 374 for their task :).
375 375
376 Sometimes, however, this gets in your way, for example when the 376 Sometimes, however, this gets in your way, for example when the
567 Return the time that the watcher is expected to trigger next. 567 Return the time that the watcher is expected to trigger next.
568 568
569 SIGNAL WATCHERS - signal me when a signal gets signalled! 569 SIGNAL WATCHERS - signal me when a signal gets signalled!
570 $w = EV::signal $signal, $callback 570 $w = EV::signal $signal, $callback
571 $w = EV::signal_ns $signal, $callback 571 $w = EV::signal_ns $signal, $callback
572 $w = $loop->signal ($signal, $callback)
573 $w = $loop->signal_ns ($signal, $callback)
572 Call the callback when $signal is received (the signal can be 574 Call the callback when $signal is received (the signal can be
573 specified by number or by name, just as with "kill" or %SIG). 575 specified by number or by name, just as with "kill" or %SIG).
576
577 Only one event loop can grab a given signal - attempting to grab the
578 same signal from two EV loops will crash the program immediately or
579 cause data corruption.
574 580
575 EV will grab the signal for the process (the kernel only allows one 581 EV will grab the signal for the process (the kernel only allows one
576 component to receive a signal at a time) when you start a signal 582 component to receive a signal at a time) when you start a signal
577 watcher, and removes it again when you stop it. Perl does the same 583 watcher, and removes it again when you stop it. Perl does the same
578 when you add/remove callbacks to %SIG, so watch out. 584 when you add/remove callbacks to %SIG, so watch out.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines