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

Comparing cvsroot/Coro/Coro.pm (file contents):
Revision 1.271 by root, Fri Oct 2 19:55:59 2009 UTC vs.
Revision 1.273 by root, Fri Dec 11 18:32:23 2009 UTC

81 81
82our $idle; # idle handler 82our $idle; # idle handler
83our $main; # main coro 83our $main; # main coro
84our $current; # current coro 84our $current; # current coro
85 85
86our $VERSION = 5.2; 86our $VERSION = 5.21;
87 87
88our @EXPORT = qw(async async_pool cede schedule terminate current unblock_sub rouse_cb rouse_wait); 88our @EXPORT = qw(async async_pool cede schedule terminate current unblock_sub rouse_cb rouse_wait);
89our %EXPORT_TAGS = ( 89our %EXPORT_TAGS = (
90 prio => [qw(PRIO_MAX PRIO_HIGH PRIO_NORMAL PRIO_LOW PRIO_IDLE PRIO_MIN)], 90 prio => [qw(PRIO_MAX PRIO_HIGH PRIO_NORMAL PRIO_LOW PRIO_IDLE PRIO_MIN)],
91); 91);
830the windows process emulation enabled under unix roughly halves perl 830the windows process emulation enabled under unix roughly halves perl
831performance, even when not used. 831performance, even when not used.
832 832
833=item coro switching is not signal safe 833=item coro switching is not signal safe
834 834
835You must not switch to another coro from within a signal handler 835You must not switch to another coro from within a signal handler (only
836(only relevant with %SIG - most event libraries provide safe signals). 836relevant with %SIG - most event libraries provide safe signals), I<unless>
837you are sure you are not interrupting a Coro function.
837 838
838That means you I<MUST NOT> call any function that might "block" the 839That means you I<MUST NOT> call any function that might "block" the
839current coro - C<cede>, C<schedule> C<< Coro::Semaphore->down >> or 840current coro - C<cede>, C<schedule> C<< Coro::Semaphore->down >> or
840anything that calls those. Everything else, including calling C<ready>, 841anything that calls those. Everything else, including calling C<ready>,
841works. 842works.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines