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

Comparing Coro/Coro.pm (file contents):
Revision 1.89 by root, Mon Nov 27 02:01:33 2006 UTC vs.
Revision 1.90 by root, Thu Nov 30 18:21:14 2006 UTC

246 my $class = shift; 246 my $class = shift;
247 247
248 $class->SUPER::new (\&_new_coro, @_) 248 $class->SUPER::new (\&_new_coro, @_)
249} 249}
250 250
251=item $process->ready 251=item $success = $process->ready
252 252
253Put the given process into the ready queue. 253Put the given process into the ready queue (according to it's priority)
254and return true. If the process is already in the ready queue, do nothing
255and return false.
254 256
255=cut 257=item $is_ready = $process->is_ready
258
259Return wether the process is currently the ready queue or not,
256 260
257=item $process->cancel (arg...) 261=item $process->cancel (arg...)
258 262
259Terminates the given process and makes it return the given arguments as 263Terminates the given process and makes it return the given arguments as
260status (default: the empty list). 264status (default: the empty list).

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines