From: Eric Covener Date: Mon, 26 Aug 2019 14:07:08 +0000 (+0000) Subject: remove APR_HAS_THREADS check X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=853f883f738b9335a9514642082aef9c4947421f;p=apache remove APR_HAS_THREADS check no need to wrap these after r1865936 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1865937 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/proxy/proxy_util.c b/modules/proxy/proxy_util.c index b4e26672dc..1b528b9b1c 100644 --- a/modules/proxy/proxy_util.c +++ b/modules/proxy/proxy_util.c @@ -2555,12 +2555,10 @@ ap_proxy_determine_connection(apr_pool_t *p, request_rec *r, * we can reuse the address. */ if (!worker->cp->addr) { -#if APR_HAS_THREADS if ((err = PROXY_THREAD_LOCK(worker)) != APR_SUCCESS) { ap_log_rerror(APLOG_MARK, APLOG_ERR, err, r, APLOGNO(00945) "lock"); return HTTP_INTERNAL_SERVER_ERROR; } -#endif /* * Worker can have the single constant backend address. @@ -2573,11 +2571,9 @@ ap_proxy_determine_connection(apr_pool_t *p, request_rec *r, conn->port, 0, worker->cp->pool); conn->addr = worker->cp->addr; -#if APR_HAS_THREADS if ((uerr = PROXY_THREAD_UNLOCK(worker)) != APR_SUCCESS) { ap_log_rerror(APLOG_MARK, APLOG_ERR, uerr, r, APLOGNO(00946) "unlock"); } -#endif } else { conn->addr = worker->cp->addr;