httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From field...@apache.org
Subject svn commit: r745338 - /httpd/httpd/trunk/modules/http/http_request.c
Date Wed, 18 Feb 2009 00:59:39 GMT
Author: fielding
Date: Wed Feb 18 00:59:39 2009
New Revision: 745338

URL: http://svn.apache.org/viewvc?rev=745338&view=rev
Log:
only call mutex functions if APR_HAS_THREADS

Modified:
    httpd/httpd/trunk/modules/http/http_request.c

Modified: httpd/httpd/trunk/modules/http/http_request.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/http/http_request.c?rev=745338&r1=745337&r2=745338&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/http/http_request.c (original)
+++ httpd/httpd/trunk/modules/http/http_request.c Wed Feb 18 00:59:39 2009
@@ -290,8 +290,10 @@
         ap_time_process_request(r->connection->sbh, START_PREQUEST);
     }
 
+#if APR_HAS_THREADS
     apr_thread_mutex_create(&r->invoke_mtx, APR_THREAD_MUTEX_DEFAULT, r->pool);
     apr_thread_mutex_lock(r->invoke_mtx);
+#endif
     access_status = ap_run_quick_handler(r, 0);  /* Not a look-up request */
     if (access_status == DECLINED) {
         access_status = ap_process_request_internal(r);
@@ -309,10 +311,14 @@
             ap_time_process_request(c->sbh, STOP_PREQUEST);
         }
         c->cs->state = CONN_STATE_SUSPENDED;
+#if APR_HAS_THREADS
         apr_thread_mutex_unlock(r->invoke_mtx);
+#endif
         return;
     }
+#if APR_HAS_THREADS
     apr_thread_mutex_unlock(r->invoke_mtx);
+#endif
 
     if (access_status == DONE) {
         /* e.g., something not in storage like TRACE */



Mime
View raw message