Lines Matching refs:from
369 zend_fiber_context *from = transfer.context; in zend_fiber_trampoline() local
372 __sanitizer_finish_switch_fiber(NULL, &from->stack->asan_pointer, &from->stack->asan_size); in zend_fiber_trampoline()
377 from->handle = data.handle; in zend_fiber_trampoline()
381 if (from->status == ZEND_FIBER_STATUS_DEAD) { in zend_fiber_trampoline()
382 zend_fiber_destroy_context(from); in zend_fiber_trampoline()
473 zend_fiber_context *from = EG(current_fiber_context); in zend_fiber_switch_context() local
478 ZEND_ASSERT(from && "From fiber context must be present"); in zend_fiber_switch_context()
479 ZEND_ASSERT(to != from && "Cannot switch into the running fiber context"); in zend_fiber_switch_context()
491 zend_observer_fiber_switch_notify(from, to); in zend_fiber_switch_context()
497 if (EXPECTED(from->status == ZEND_FIBER_STATUS_RUNNING)) { in zend_fiber_switch_context()
498 from->status = ZEND_FIBER_STATUS_SUSPENDED; in zend_fiber_switch_context()
502 transfer->context = from; in zend_fiber_switch_context()
509 from->status != ZEND_FIBER_STATUS_DEAD ? &fake_stack : NULL, in zend_fiber_switch_context()
517 swapcontext(from->handle, to->handle); in zend_fiber_switch_context()
539 EG(current_fiber_context) = from; in zend_fiber_switch_context()