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.45 by root, Fri Dec 29 11:37:49 2006 UTC vs.
Revision 1.46 by root, Fri Dec 29 12:05:55 2006 UTC

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 51
52=head1 SEMANTICS 52=head1 SEMANTICS
53 53
54Whenever Event blocks (e.g. in a call to C<one_event>, C<loop< etc.), 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 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 56priority. When any coroutines of lower priority are ready, it will not
57block but run one of them and then check for events. 57block but run one of them and then check for events.
58 58
59The effect is that coroutines with the same or higher priority than 59The effect is that coroutines with the same or higher priority than
83use base Exporter::; 83use base Exporter::;
84 84
85our @EXPORT = qw(loop unloop sweep); 85our @EXPORT = qw(loop unloop sweep);
86 86
87BEGIN { 87BEGIN {
88 our $VERSION = 1.9; 88 our $VERSION = '2.0';
89 89
90 local $^W = 0; # avoid redefine warning for Coro::ready; 90 local $^W = 0; # avoid redefine warning for Coro::ready;
91 XSLoader::load __PACKAGE__, $VERSION; 91 XSLoader::load __PACKAGE__, $VERSION;
92} 92}
93 93

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines