… | |
… | |
835 | |
835 | |
836 | A thread is in a safe-cancellable state if it either has never been run |
836 | A thread is in a safe-cancellable state if it either has never been run |
837 | yet, has already been canceled/terminated or otherwise destroyed, or has |
837 | yet, has already been canceled/terminated or otherwise destroyed, or has |
838 | no C context attached and is inside an SLF function. |
838 | no C context attached and is inside an SLF function. |
839 | |
839 | |
840 | The first two states are trivial - a thread that hasnot started or has |
840 | The first two states are trivial - a thread that has not started or has |
841 | already finished is safe to cancel. |
841 | already finished is safe to cancel. |
842 | |
842 | |
843 | The last state basically means that the thread isn't currently inside a |
843 | The last state basically means that the thread isn't currently inside a |
844 | perl callback called from some C function (usually via some XS modules) |
844 | perl callback called from some C function (usually via some XS modules) |
845 | and isn't currently executing inside some C function itself (via Coro's XS |
845 | and isn't currently executing inside some C function itself (via Coro's XS |