Lines Matching refs:key
20 apr_status_t apr_threadkey_private_create(apr_threadkey_t **key,
25 (*key) = (apr_threadkey_t *)apr_palloc(pool, sizeof(apr_threadkey_t));
26 if ((*key) == NULL) {
30 (*key)->pool = pool;
32 if ((stat = NXKeyCreate(NULL, dest, &(*key)->key)) == 0) {
38 apr_status_t apr_threadkey_private_get(void **new, apr_threadkey_t *key)
42 if ((stat = NXKeyGetValue(key->key, new)) == 0) {
50 apr_status_t apr_threadkey_private_set(void *priv, apr_threadkey_t *key)
53 if ((stat = NXKeySetValue(key->key, priv)) == 0) {
61 apr_status_t apr_threadkey_private_delete(apr_threadkey_t *key)
64 if ((stat = NXKeyDelete(key->key)) == 0) {
70 apr_status_t apr_threadkey_data_get(void **data, const char *key, apr_threadkey_t *threadkey)
72 return apr_pool_userdata_get(data, key, threadkey->pool);
76 const char *key, apr_status_t (*cleanup) (void *),
79 return apr_pool_userdata_set(data, key, cleanup, threadkey->pool);
83 apr_threadkey_t *key)
85 thekey = &(key->key);
89 apr_status_t apr_os_threadkey_put(apr_threadkey_t **key,
95 if ((*key) == NULL) {
96 (*key) = (apr_threadkey_t *)apr_palloc(pool, sizeof(apr_threadkey_t));
97 (*key)->pool = pool;
99 (*key)->key = *thekey;