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

Comparing Coro/Coro.pm (file contents):
Revision 1.51 by root, Thu May 8 00:55:28 2003 UTC vs.
Revision 1.52 by root, Tue May 27 00:26:34 2003 UTC

267 267
268=item $oldprio = $process->prio($newprio) 268=item $oldprio = $process->prio($newprio)
269 269
270Sets (or gets, if the argument is missing) the priority of the 270Sets (or gets, if the argument is missing) the priority of the
271process. Higher priority processes get run before lower priority 271process. Higher priority processes get run before lower priority
272processes. Priorities are smalled signed integer (currently -4 .. +3), 272processes. Priorities are small signed integers (currently -4 .. +3),
273that you can refer to using PRIO_xxx constants (use the import tag :prio 273that you can refer to using PRIO_xxx constants (use the import tag :prio
274to get then): 274to get then):
275 275
276 PRIO_MAX > PRIO_HIGH > PRIO_NORMAL > PRIO_LOW > PRIO_IDLE > PRIO_MIN 276 PRIO_MAX > PRIO_HIGH > PRIO_NORMAL > PRIO_LOW > PRIO_IDLE > PRIO_MIN
277 3 > 1 > 0 > -1 > -3 > -4 277 3 > 1 > 0 > -1 > -3 > -4
325 325
3261; 3261;
327 327
328=head1 BUGS/LIMITATIONS 328=head1 BUGS/LIMITATIONS
329 329
330 - you must make very sure that no coro is still active on global destruction. 330 - you must make very sure that no coro is still active on global
331 very bad things might happen otherwise (usually segfaults). 331 destruction. very bad things might happen otherwise (usually segfaults
332 or "panic: top_env").
333
332 - this module is not thread-safe. You should only ever use this module from 334 - this module is not thread-safe. You should only ever use this module
333 the same thread (this requirement might be loosened in the future to 335 from the same thread (this requirement might be losened in the future
334 allow per-thread schedulers, but Coro::State does not yet allow this). 336 to allow per-thread schedulers, but Coro::State does not yet allow
337 this).
335 338
336=head1 SEE ALSO 339=head1 SEE ALSO
337 340
338L<Coro::Channel>, L<Coro::Cont>, L<Coro::Specific>, L<Coro::Semaphore>, 341L<Coro::Channel>, L<Coro::Cont>, L<Coro::Specific>, L<Coro::Semaphore>,
339L<Coro::Signal>, L<Coro::State>, L<Coro::Event>, L<Coro::RWLock>, 342L<Coro::Signal>, L<Coro::State>, L<Coro::Event>, L<Coro::RWLock>,

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines