src/server/master.cc
int swServer_create_user_workers(swServer *serv)
{
    /**
     * if Swoole\Server::addProcess is called first, 
     * swServer::user_worker_list is initialized in the swServer_add_worker function
     */
    if (serv->user_worker_list == nullptr)
    {
        serv->user_worker_list = new std::vector<swWorker *>;
    }

    serv->user_workers = (swWorker *) SwooleG.memory_pool->alloc(SwooleG.memory_pool, serv->user_worker_num * sizeof(swWorker));
    if (serv->user_workers == NULL)
    {
        swSysWarn("gmalloc[server->user_workers] failed");
        return SW_ERR;
    }
    return SW_OK;
}
/**
 * @description: 
 *  only the memory of the swWorker structure is allocated, no process is fork.
 *  called when the manager process start.
 * @param swServer
 * @return: SW_OK|SW_ERR
 */
@description:
only the memory of the swWorker structure is allocated, no process is fork.
called when the manager process start.
@description : only the memory of the swWorker structure is allocated no process is fork . called when the manager process start .
int swServer_create_user_workers(swServer *serv)
{
    if (serv->user_worker_list == nullptr)
    {
        serv->user_worker_list = new std::vector<swWorker *>;
    }
    serv->user_workers = (swWorker *) SwooleG.memory_pool->alloc(SwooleG.memory_pool, serv->user_worker_num * sizeof(swWorker));
    if (serv->user_workers == NULL)
    {
        swSysWarn("gmalloc[server->user_workers] failed");
        return SW_ERR;
    }
    return SW_OK;
}
int swServer_create_user_workers ( swServer * serv ) { if ( serv -> user_worker_list == nullptr ) { serv -> user_worker_list = new std :: vector < swWorker * > ; } serv -> user_workers = ( swWorker * ) SwooleG . memory_pool -> alloc ( SwooleG . memory_pool , serv -> user_worker_num * sizeof ( swWorker ) ) ; if ( serv -> user_workers == NULL ) { swSysWarn ( " " ) ; return SW_ERR ; } return SW_OK ; }
@description:
  only the memory of the swWorker structure is allocated, no process is fork.
@description : only the memory of the swWorker structure is allocated no process is fork .
/**
     * if Swoole\Server::addProcess is called first, 
     * swServer::user_worker_list is initialized in the swServer_add_worker function
     */