Lines Matching refs:key
25 APR_DECLARE(apr_status_t) apr_threadkey_private_create(apr_threadkey_t **key,
29 (*key) = (apr_threadkey_t *)apr_palloc(pool, sizeof(apr_threadkey_t));
31 if ((*key) == NULL) {
35 (*key)->pool = pool;
36 return APR_OS2_STATUS(DosAllocThreadLocalMemory(1, &((*key)->key)));
39 APR_DECLARE(apr_status_t) apr_threadkey_private_get(void **new, apr_threadkey_t *key)
41 (*new) = (void *)*(key->key);
45 APR_DECLARE(apr_status_t) apr_threadkey_private_set(void *priv, apr_threadkey_t *key)
47 *(key->key) = (ULONG)priv;
51 APR_DECLARE(apr_status_t) apr_threadkey_private_delete(apr_threadkey_t *key)
53 return APR_OS2_STATUS(DosFreeThreadLocalMemory(key->key));
56 APR_DECLARE(apr_status_t) apr_threadkey_data_get(void **data, const char *key,
59 return apr_pool_userdata_get(data, key, threadkey->pool);
62 APR_DECLARE(apr_status_t) apr_threadkey_data_set(void *data, const char *key,
66 return apr_pool_userdata_set(data, key, cleanup, threadkey->pool);
69 APR_DECLARE(apr_status_t) apr_os_threadkey_get(apr_os_threadkey_t *thekey, apr_threadkey_t *key)
71 *thekey = key->key;
75 APR_DECLARE(apr_status_t) apr_os_threadkey_put(apr_threadkey_t **key,
82 if ((*key) == NULL) {
83 (*key) = (apr_threadkey_t *)apr_pcalloc(pool, sizeof(apr_threadkey_t));
84 (*key)->pool = pool;
86 (*key)->key = *thekey;