Lines Matching refs:key
247 uv_thread_t key; in uv_thread_self() local
249 key = uv_key_get(&uv__current_thread_key); in uv_thread_self()
250 if (key == NULL) { in uv_thread_self()
254 GetCurrentProcess(), &key, 0, in uv_thread_self()
258 uv_key_set(&uv__current_thread_key, key); in uv_thread_self()
260 return key; in uv_thread_self()
514 int uv_key_create(uv_key_t* key) { in uv_key_create() argument
515 key->tls_index = TlsAlloc(); in uv_key_create()
516 if (key->tls_index == TLS_OUT_OF_INDEXES) in uv_key_create()
522 void uv_key_delete(uv_key_t* key) { in uv_key_delete() argument
523 if (TlsFree(key->tls_index) == FALSE) in uv_key_delete()
525 key->tls_index = TLS_OUT_OF_INDEXES; in uv_key_delete()
529 void* uv_key_get(uv_key_t* key) { in uv_key_get() argument
532 value = TlsGetValue(key->tls_index); in uv_key_get()
541 void uv_key_set(uv_key_t* key, void* value) { in uv_key_set() argument
542 if (TlsSetValue(key->tls_index, value) == FALSE) in uv_key_set()