… | |
… | |
830 | the windows process emulation enabled under unix roughly halves perl |
830 | the windows process emulation enabled under unix roughly halves perl |
831 | performance, even when not used. |
831 | performance, even when not used. |
832 | |
832 | |
833 | =item coro switching is not signal safe |
833 | =item coro switching is not signal safe |
834 | |
834 | |
835 | You must not switch to another coro from within a signal handler |
835 | You must not switch to another coro from within a signal handler (only |
836 | (only relevant with %SIG - most event libraries provide safe signals). |
836 | relevant with %SIG - most event libraries provide safe signals), I<unless> |
|
|
837 | you are sure you are not interrupting a Coro function. |
837 | |
838 | |
838 | That means you I<MUST NOT> call any function that might "block" the |
839 | That means you I<MUST NOT> call any function that might "block" the |
839 | current coro - C<cede>, C<schedule> C<< Coro::Semaphore->down >> or |
840 | current coro - C<cede>, C<schedule> C<< Coro::Semaphore->down >> or |
840 | anything that calls those. Everything else, including calling C<ready>, |
841 | anything that calls those. Everything else, including calling C<ready>, |
841 | works. |
842 | works. |