summaryrefslogtreecommitdiff
path: root/threadproc/os2/threadpriv.c
diff options
context:
space:
mode:
authorstriker <striker@13f79535-47bb-0310-9956-ffa450edef68>2002-03-19 17:54:00 +0000
committerstriker <striker@13f79535-47bb-0310-9956-ffa450edef68>2002-03-19 17:54:00 +0000
commitde84b53cdbb5340e0b0038eb562aac24342619cb (patch)
treec9ea81a0691bf519cd9538f64295fdeb25741497 /threadproc/os2/threadpriv.c
parent93ed3f31bb7b39f9e2c3f04fff67138f9567310d (diff)
downloadlibapr-de84b53cdbb5340e0b0038eb562aac24342619cb.tar.gz
Rename all the "cntxt" members of the thread and proc structures to
"pool". git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63158 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'threadproc/os2/threadpriv.c')
-rw-r--r--threadproc/os2/threadpriv.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/threadproc/os2/threadpriv.c b/threadproc/os2/threadpriv.c
index 7d1bd68e2..685268f9f 100644
--- a/threadproc/os2/threadpriv.c
+++ b/threadproc/os2/threadpriv.c
@@ -62,15 +62,15 @@
APR_DECLARE(apr_status_t) apr_threadkey_private_create(apr_threadkey_t **key,
void (*dest)(void *),
- apr_pool_t *cont)
+ apr_pool_t *pool)
{
- (*key) = (apr_threadkey_t *)apr_palloc(cont, sizeof(apr_threadkey_t));
+ (*key) = (apr_threadkey_t *)apr_palloc(pool, sizeof(apr_threadkey_t));
if ((*key) == NULL) {
return APR_ENOMEM;
}
- (*key)->cntxt = cont;
+ (*key)->pool = pool;
return APR_OS2_STATUS(DosAllocThreadLocalMemory(1, &((*key)->key)));
}
@@ -94,14 +94,14 @@ APR_DECLARE(apr_status_t) apr_threadkey_private_delete(apr_threadkey_t *key)
APR_DECLARE(apr_status_t) apr_threadkey_data_get(void **data, const char *key,
apr_threadkey_t *threadkey)
{
- return apr_pool_userdata_get(data, key, threadkey->cntxt);
+ return apr_pool_userdata_get(data, key, threadkey->pool);
}
APR_DECLARE(apr_status_t) apr_threadkey_data_set(void *data, const char *key,
apr_status_t (*cleanup) (void *),
apr_threadkey_t *threadkey)
{
- return apr_pool_userdata_set(data, key, cleanup, threadkey->cntxt);
+ return apr_pool_userdata_set(data, key, cleanup, threadkey->pool);
}
APR_DECLARE(apr_status_t) apr_os_threadkey_get(apr_os_threadkey_t *thekey, apr_threadkey_t *key)
@@ -112,14 +112,14 @@ APR_DECLARE(apr_status_t) apr_os_threadkey_get(apr_os_threadkey_t *thekey, apr_t
APR_DECLARE(apr_status_t) apr_os_threadkey_put(apr_threadkey_t **key,
apr_os_threadkey_t *thekey,
- apr_pool_t *cont)
+ apr_pool_t *pool)
{
- if (cont == NULL) {
+ if (pool == NULL) {
return APR_ENOPOOL;
}
if ((*key) == NULL) {
- (*key) = (apr_threadkey_t *)apr_pcalloc(cont, sizeof(apr_threadkey_t));
- (*key)->cntxt = cont;
+ (*key) = (apr_threadkey_t *)apr_pcalloc(pool, sizeof(apr_threadkey_t));
+ (*key)->pool = pool;
}
(*key)->key = *thekey;
return APR_SUCCESS;