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

Comparing Coro/Coro.pm (file contents):
Revision 1.33 by root, Sun Sep 16 00:44:05 2001 UTC vs.
Revision 1.36 by root, Mon Sep 24 01:36:20 2001 UTC

32 32
33=cut 33=cut
34 34
35package Coro; 35package Coro;
36 36
37no warnings qw(uninitialized);
38
37use Coro::State; 39use Coro::State;
38 40
39use base Exporter; 41use base Exporter;
40 42
41$VERSION = 0.49; 43$VERSION = 0.5;
42 44
43@EXPORT = qw(async cede schedule terminate current); 45@EXPORT = qw(async cede schedule terminate current);
44%EXPORT_TAGS = ( 46%EXPORT_TAGS = (
45 prio => [qw(PRIO_MAX PRIO_HIGH PRIO_NORMAL PRIO_LOW PRIO_IDLE PRIO_MIN)], 47 prio => [qw(PRIO_MAX PRIO_HIGH PRIO_NORMAL PRIO_LOW PRIO_IDLE PRIO_MIN)],
46); 48);
229=cut 231=cut
230 232
231sub cancel { 233sub cancel {
232 push @destroy, $_[0]; 234 push @destroy, $_[0];
233 $manager->ready; 235 $manager->ready;
236 &schedule if $current == $_[0];
234} 237}
235 238
236=item $oldprio = $process->prio($newprio) 239=item $oldprio = $process->prio($newprio)
237 240
238Sets the priority of the process. Higher priority processes get run before 241Sets the priority of the process. Higher priority processes get run before

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines