Lines Matching defs:key
146 void* ub_thread_key_get(ub_thread_key_t key)
149 LOCKRET(thr_getspecific(key, &ret));
200 void ub_thread_key_create(ub_thread_key_t* key, void* f)
202 *key = TlsAlloc();
203 if(*key == TLS_OUT_OF_INDEXES) {
204 *key = 0;
207 else ub_thread_key_set(*key, f);
210 void ub_thread_key_set(ub_thread_key_t key, void* v)
212 if(!TlsSetValue(key, v)) {
217 void* ub_thread_key_get(ub_thread_key_t key)
219 void* ret = (void*)TlsGetValue(key);