… | |
… | |
49 | While this seems to work superficially, it will eventually cause memory |
49 | While this seems to work superficially, it will eventually cause memory |
50 | corruption. |
50 | corruption. |
51 | |
51 | |
52 | =head1 SEMANTICS |
52 | =head1 SEMANTICS |
53 | |
53 | |
54 | Whenever Event blocks (e.g. in a call to C<one_event>, C<loop< etc.), |
54 | Whenever Event blocks (e.g. in a call to C<one_event>, C<loop> etc.), |
55 | this module cede's to all other coroutines with the same or higher |
55 | this module cede's to all other coroutines with the same or higher |
56 | priority. When any coroutines of lower priority are ready, it will not |
56 | priority. When any coroutines of lower priority are ready, it will not |
57 | block but run one of them and then check for events. |
57 | block but run one of them and then check for events. |
58 | |
58 | |
59 | The effect is that coroutines with the same or higher priority than |
59 | The effect is that coroutines with the same or higher priority than |
… | |
… | |
83 | use base Exporter::; |
83 | use base Exporter::; |
84 | |
84 | |
85 | our @EXPORT = qw(loop unloop sweep); |
85 | our @EXPORT = qw(loop unloop sweep); |
86 | |
86 | |
87 | BEGIN { |
87 | BEGIN { |
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 | |