Lines Matching refs:key
24 APR_DECLARE(apr_status_t) apr_threadkey_private_create(apr_threadkey_t **key,
28 (*key) = (apr_threadkey_t *)apr_pcalloc(pool, sizeof(apr_threadkey_t));
30 if ((*key) == NULL) {
34 (*key)->pool = pool;
36 return pthread_key_create(&(*key)->key, dest);
41 apr_threadkey_t *key)
44 if (pthread_getspecific(key->key,new))
47 (*new) = pthread_getspecific(key->key);
53 apr_threadkey_t *key)
57 if ((stat = pthread_setspecific(key->key, priv)) == 0) {
65 APR_DECLARE(apr_status_t) apr_threadkey_private_delete(apr_threadkey_t *key)
70 if ((stat = pthread_key_delete(key->key)) == 0) {
80 APR_DECLARE(apr_status_t) apr_threadkey_data_get(void **data, const char *key,
83 return apr_pool_userdata_get(data, key, threadkey->pool);
86 APR_DECLARE(apr_status_t) apr_threadkey_data_set(void *data, const char *key,
90 return apr_pool_userdata_set(data, key, cleanup, threadkey->pool);
94 apr_threadkey_t *key)
96 *thekey = key->key;
100 APR_DECLARE(apr_status_t) apr_os_threadkey_put(apr_threadkey_t **key,
108 if ((*key) == NULL) {
109 (*key) = (apr_threadkey_t *)apr_pcalloc(pool, sizeof(apr_threadkey_t));
110 (*key)->pool = pool;
113 (*key)->key = *thekey;