… | |
… | |
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 | |
253 | Put the given process into the ready queue. |
253 | Put the given process into the ready queue (according to it's priority) |
|
|
254 | and return true. If the process is already in the ready queue, do nothing |
|
|
255 | and return false. |
254 | |
256 | |
255 | =cut |
257 | =item $is_ready = $process->is_ready |
|
|
258 | |
|
|
259 | Return wether the process is currently the ready queue or not, |
256 | |
260 | |
257 | =item $process->cancel (arg...) |
261 | =item $process->cancel (arg...) |
258 | |
262 | |
259 | Terminates the given process and makes it return the given arguments as |
263 | Terminates the given process and makes it return the given arguments as |
260 | status (default: the empty list). |
264 | status (default: the empty list). |