[svn:mod_parrot] r524 - in mod_parrot/trunk: include src
[email protected] Fri, 5 Dec 2008 10:52:54 -0800 (PST)
| Newsgroups | perl.cvs.mod_parrot |
|---|---|
| Message-ID | <[email protected]> |
Author: jhorwitz
Date: Fri Dec 5 10:52:53 2008
New Revision: 524
Modified:
mod_parrot/trunk/include/mod_parrot.h
mod_parrot/trunk/src/context.c
Log:
remove unused pool_index
Modified: mod_parrot/trunk/include/mod_parrot.h
==============================================================================
--- mod_parrot/trunk/include/mod_parrot.h (original)
+++ mod_parrot/trunk/include/mod_parrot.h Fri Dec 5 10:52:53 2008
@@ -61,7 +61,6 @@
conn_rec *c;
void *csd;
int module_index;
- int pool_index;
};
typedef struct modparrot_context modparrot_context;
Modified: mod_parrot/trunk/src/context.c
==============================================================================
--- mod_parrot/trunk/src/context.c (original)
+++ mod_parrot/trunk/src/context.c Fri Dec 5 10:52:53 2008
@@ -53,7 +53,6 @@
ctx = (*(modparrot_context **)apr_array_push(ctx_pool) =
(modparrot_context *)apr_pcalloc(p, sizeof(modparrot_context)));
ctx->parent_interp = parent_interp;
- ctx->pool_index = -1;
}
#ifdef MPM_IS_THREADED
@@ -109,7 +108,6 @@
if (MODPARROT_CTX_ISLOCKED(c)) continue;
MODPARROT_CTX_LOCK(c);
ctxp = c;
- ctxp->pool_index = i;
break;
}
}
@@ -120,14 +118,12 @@
}
else {
MODPARROT_CTX_LOCK(ctxp);
- ctxp->pool_index = index;
}
}
}
apr_thread_mutex_unlock(ctx_pool_mutex);
#else /* MPM_IS_THREADED */
ctxp = ((modparrot_context **)ctx_pool->elts)[0];
- ctxp->pool_index = 0;
MODPARROT_CTX_LOCK(ctxp); /* no threads here, just for consistency */
#endif /* MPM_IS_THREADED */
return(ctxp);
@@ -136,7 +132,6 @@
/* releases a context back into the pool of available contexts */
void release_ctx(modparrot_context *ctxp)
{
- ctxp->pool_index = -1;
MODPARROT_CTX_UNLOCK(ctxp);
}