ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Coro/Event/Event.pm
(Generate patch)

Comparing Coro/Event/Event.pm (file contents):
Revision 1.44 by root, Fri Dec 1 20:49:54 2006 UTC vs.
Revision 1.45 by root, Fri Dec 29 11:37:49 2006 UTC

46callbacks, you I<must never ever> call a Coroutine fucntion that blocks 46callbacks, you I<must never ever> call a Coroutine fucntion that blocks
47the current coroutine. 47the current coroutine.
48 48
49While this seems to work superficially, it will eventually cause memory 49While this seems to work superficially, it will eventually cause memory
50corruption. 50corruption.
51
52=head1 SEMANTICS
53
54Whenever Event blocks (e.g. in a call to C<one_event>, C<loop< etc.),
55this module cede's to all other coroutines with the same or higher
56priority. When any coroutines of lower priority are ready, it will not
57block but run one of them and then check for events.
58
59The effect is that coroutines with the same or higher priority than
60the blocking coroutine will keep Event from checking for events, while
61coroutines with lower priority are being run, but Event checks for new
62events after every cede.
51 63
52=head1 FUNCTIONS 64=head1 FUNCTIONS
53 65
54=over 4 66=over 4
55 67

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines