You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mod_python-commits@quetz.apache.org by nl...@apache.org on 2005/09/10 17:46:31 UTC
svn commit: r280015 - /httpd/mod_python/trunk/src/mod_python.c
Author: nlehuen
Date: Sat Sep 10 08:46:24 2005
New Revision: 280015
URL: http://svn.apache.org/viewcvs?rev=280015&view=rev
Log:
Added a test for WITH_THREAD because the interpreters_lock doesn't need to be created if we don't have threads.
Modified:
httpd/mod_python/trunk/src/mod_python.c
Modified: httpd/mod_python/trunk/src/mod_python.c
URL: http://svn.apache.org/viewcvs/httpd/mod_python/trunk/src/mod_python.c?rev=280015&r1=280014&r2=280015&view=diff
==============================================================================
--- httpd/mod_python/trunk/src/mod_python.c (original)
+++ httpd/mod_python/trunk/src/mod_python.c Sat Sep 10 08:46:24 2005
@@ -31,7 +31,9 @@
* (In a Python dictionary) */
static PyObject * interpreters = NULL;
+#ifdef WITH_THREAD
static apr_thread_mutex_t* interpreters_lock = 0;
+#endif
apr_pool_t *child_init_pool = NULL;