void * WRK_thread(void *priv) { uint16_t nhttp; unsigned siov; assert(cache_param->http_max_hdr <= 65535); /* We need to snapshot these two for consistency */ nhttp = (uint16_t)cache_param->http_max_hdr; siov = nhttp * 2; if (siov > IOV_MAX) siov = IOV_MAX; return (wrk_thread_real(priv, cache_param->shm_workspace, cache_param->wthread_workspace, nhttp, HTTP_estimate(nhttp), siov)); }
void * WRK_thread(void *priv) { return (wrk_thread_real(priv, cache_param->workspace_thread)); }