|
Lines 328-334
ZEND_API bool zend_fiber_init_context(zend_fiber_context *context, void *kind, z
Link Here
|
| 328 |
handle->uc_stack.ss_flags = 0; |
328 |
handle->uc_stack.ss_flags = 0; |
| 329 |
handle->uc_link = NULL; |
329 |
handle->uc_link = NULL; |
| 330 |
|
330 |
|
|
|
331 |
#ifdef __e2k__ |
| 332 |
if (UNEXPECTED(makecontext_e2k(handle, (void (*)(void)) zend_fiber_trampoline, 0) < 0)) { |
| 333 |
return false; |
| 334 |
} |
| 335 |
#else |
| 331 |
makecontext(handle, (void (*)(void)) zend_fiber_trampoline, 0); |
336 |
makecontext(handle, (void (*)(void)) zend_fiber_trampoline, 0); |
|
|
337 |
#endif |
| 332 |
|
338 |
|
| 333 |
context->handle = handle; |
339 |
context->handle = handle; |
| 334 |
#else |
340 |
#else |
|
Lines 354-359
ZEND_API void zend_fiber_destroy_context(zend_fiber_context *context)
Link Here
|
| 354 |
{ |
360 |
{ |
| 355 |
zend_observer_fiber_destroy_notify(context); |
361 |
zend_observer_fiber_destroy_notify(context); |
| 356 |
|
362 |
|
|
|
363 |
#ifdef __e2k__ |
| 364 |
freecontext_e2k(&context->stack->ucontext); |
| 365 |
#endif |
| 366 |
|
| 357 |
zend_fiber_stack_free(context->stack); |
367 |
zend_fiber_stack_free(context->stack); |
| 358 |
} |
368 |
} |
| 359 |
|
369 |
|
| 360 |
- |
|
|