quetz-mod_python-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nleh...@apache.org
Subject svn commit: r280095 - /httpd/mod_python/trunk/src/mod_python.c
Date Sun, 11 Sep 2005 08:24:56 GMT
Author: nlehuen
Date: Sun Sep 11 01:24:53 2005
New Revision: 280095

URL: http://svn.apache.org/viewcvs?rev=280095&view=rev
Log:
APR_HAS_THREADS must be tested for truth value, not for definition. On minotaur, APR_HAS_THREADS
is defined as 0.

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=280095&r1=280094&r2=280095&view=diff
==============================================================================
--- httpd/mod_python/trunk/src/mod_python.c (original)
+++ httpd/mod_python/trunk/src/mod_python.c Sun Sep 11 01:24:53 2005
@@ -31,7 +31,7 @@
  * (In a Python dictionary) */
 static PyObject * interpreters = NULL;
 
-#if defined(WITH_THREAD) && defined(APR_HAS_THREADS)
+#if defined(WITH_THREAD) && APR_HAS_THREADS
 static apr_thread_mutex_t* interpreters_lock = 0;
 #endif
 
@@ -130,7 +130,7 @@
         name = MAIN_INTERPRETER;
 
 #ifdef WITH_THREAD
-    #ifdef APR_HAS_THREADS
+    #if APR_HAS_THREADS
         apr_thread_mutex_lock(interpreters_lock);
     #endif
     PyEval_AcquireLock();
@@ -162,7 +162,7 @@
 
 #ifdef WITH_THREAD
     PyEval_ReleaseLock();
-    #ifdef APR_HAS_THREADS
+    #if APR_HAS_THREADS
         apr_thread_mutex_unlock(interpreters_lock);
     #endif
 #endif
@@ -520,7 +520,7 @@
         Py_Initialize();
 
 #ifdef WITH_THREAD
-        #ifdef APR_HAS_THREADS
+        #if APR_HAS_THREADS
             apr_thread_mutex_create(&interpreters_lock,APR_THREAD_MUTEX_UNNESTED,p);
         #endif
         /* create and acquire the interpreter lock */



Mime
View raw message