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.5 by root, Sat Aug 18 02:58:38 2001 UTC vs.
Revision 1.7 by root, Tue Oct 9 00:50:32 2001 UTC

38 38
39=cut 39=cut
40 40
41package Coro::Event; 41package Coro::Event;
42 42
43no warnings; 43no warnings qw(uninitialized);
44 44
45use Carp; 45use Carp;
46 46
47use Coro; 47use Coro;
48use Event qw(unloop); # we are re-exporting this, cooool! 48use Event qw(unloop); # we are re-exporting this, cooool!
52@EXPORT = qw(loop unloop sweep reschedule); 52@EXPORT = qw(loop unloop sweep reschedule);
53 53
54BEGIN { 54BEGIN {
55 $VERSION = 0.45; 55 $VERSION = 0.45;
56 56
57 local $^W = 0; # avoid redefine warning for Coro::ready
57 require XSLoader; 58 require XSLoader;
58 XSLoader::load Coro::Event, $VERSION; 59 XSLoader::load Coro::Event, $VERSION;
59} 60}
60 61
61=item $w = Coro::Event->flavour(args...) 62=item $w = Coro::Event->flavour(args...)
137into the Event dispatcher. 138into the Event dispatcher.
138 139
139=cut 140=cut
140 141
141sub sweep { 142sub sweep {
142 one_event(0); # for now 143 Event::one_event(0); # for now
143} 144}
144 145
145=item $result = loop([$timeout]) 146=item $result = loop([$timeout])
146 147
147This is the version of C<loop> you should use instead of C<Event::loop> 148This is the version of C<loop> you should use instead of C<Event::loop>

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines