]> granicus.if.org Git - apache/commitdiff
Add comment explaining the startup mutex.
authorPaul Querna <pquerna@apache.org>
Fri, 5 Dec 2008 08:57:16 +0000 (08:57 +0000)
committerPaul Querna <pquerna@apache.org>
Fri, 5 Dec 2008 08:57:16 +0000 (08:57 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@723665 13f79535-47bb-0310-9956-ffa450edef68

modules/cluster/mod_heartbeat.c

index df530f6dd3b44e060af80ef208b0c6c4d14c1cf4..4eac07cffbaa4fcd7bd4f480dfb4725b2bad10f0 100644 (file)
@@ -191,6 +191,9 @@ static void start_hb_worker(apr_pool_t *p, hb_ctx_t *ctx)
         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);