httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pque...@apache.org
Subject svn commit: r723665 - /httpd/httpd/trunk/modules/cluster/mod_heartbeat.c
Date Fri, 05 Dec 2008 08:57:16 GMT
Author: pquerna
Date: Fri Dec  5 00:57:16 2008
New Revision: 723665

URL: http://svn.apache.org/viewvc?rev=723665&view=rev
Log:
Add comment explaining the startup mutex.

Modified:
    httpd/httpd/trunk/modules/cluster/mod_heartbeat.c

Modified: httpd/httpd/trunk/modules/cluster/mod_heartbeat.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/cluster/mod_heartbeat.c?rev=723665&r1=723664&r2=723665&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/cluster/mod_heartbeat.c (original)
+++ httpd/httpd/trunk/modules/cluster/mod_heartbeat.c Fri Dec  5 00:57:16 2008
@@ -191,6 +191,9 @@
         return;
     }
 
+    /* This mutex fixes problems with a fast start/fast end, where the pool 
+     * cleanup was being invoked before the thread completely spawned. 
+     */
     apr_thread_mutex_lock(ctx->start_mtx);
 
     apr_pool_cleanup_register(p, ctx, hb_pool_cleanup, apr_pool_cleanup_null);



Mime
View raw message