diff options
author | Paul Querna <pquerna@apache.org> | 2008-12-05 08:57:16 +0000 |
---|---|---|
committer | Paul Querna <pquerna@apache.org> | 2008-12-05 08:57:16 +0000 |
commit | 4a8f5f80c5535ad99834b32581f693cc7c5300c5 (patch) | |
tree | 4fa9099771398610edcb51f7ea4800a5336c0aa9 | |
parent | 24bbbd088e5f7ba51a6154ce25a16e6262b6795f (diff) | |
download | httpd-4a8f5f80c5535ad99834b32581f693cc7c5300c5.tar.gz |
Add comment explaining the startup mutex.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@723665 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | modules/cluster/mod_heartbeat.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/cluster/mod_heartbeat.c b/modules/cluster/mod_heartbeat.c index df530f6dd3..4eac07cffb 100644 --- a/modules/cluster/mod_heartbeat.c +++ b/modules/cluster/mod_heartbeat.c @@ -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); |