Lines Matching defs:key
521 int tss_create(tss_t *key, tss_dtor_t dtor)
529 *key = TlsAlloc();
530 if (*key == TLS_OUT_OF_INDEXES)
535 if (pthread_key_create(key, dtor) != 0)
543 void tss_delete(tss_t key)
546 TlsFree(key);
548 pthread_key_delete(key);
552 void *tss_get(tss_t key)
555 return TlsGetValue(key);
557 return pthread_getspecific(key);
561 int tss_set(tss_t key, void *val)
564 if (TlsSetValue(key, val) == 0)
569 if (pthread_setspecific(key, val) != 0)