Skip to content

Commit 1f302f7

Browse files
committed
* remove fiber_context_allocate
1 parent 09c84c7 commit 1f302f7

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

scheduler.c

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -314,19 +314,6 @@ static zend_always_inline async_coroutine_t *next_coroutine(void)
314314
return coroutine;
315315
}
316316

317-
static zend_always_inline async_fiber_context_t *fiber_context_allocate(void)
318-
{
319-
async_fiber_context_t *fiber_context = NULL;
320-
321-
circular_buffer_pop_ptr(&ASYNC_G(fiber_context_pool), (void**)&fiber_context);
322-
323-
if (fiber_context == NULL) {
324-
fiber_context = async_fiber_context_create();
325-
}
326-
327-
return fiber_context;
328-
}
329-
330317
static zend_always_inline bool return_fiber_to_pool(async_fiber_context_t *fiber_context)
331318
{
332319
circular_buffer_t *buffer = &ASYNC_G(fiber_context_pool);

0 commit comments

Comments
 (0)