static int swFactoryThread_shutdown(swFactory *factory) { SwooleG.running = 0; swFactoryThread *object = factory->object; swThreadPool_free(&object->workers); sw_free(object); return SW_OK; }
void swAioBase_destroy() { swThreadPool_free(&swAioBase_thread_pool); if (SwooleG.main_reactor) { SwooleG.main_reactor->del(SwooleG.main_reactor, swAioBase_pipe_read); } swoole_aio_pipe.close(&swoole_aio_pipe); }
void swAio_free(void) { if (!SwooleAIO.init) { return; } swThreadPool_free(&pool); if (SwooleG.main_reactor) { SwooleG.main_reactor->del(SwooleG.main_reactor, _pipe_read); } _aio_pipe.close(&_aio_pipe); SwooleAIO.init = 0; }
void swAioBase_destroy() { swThreadPool_free(&swAioBase_thread_pool); }