Lines Matching refs:tt
36 struct _thread_tag *tt; in _thread_tag_init() local
42 tt = malloc(sizeof *tt); in _thread_tag_init()
43 if (tt != NULL) { in _thread_tag_init()
44 result = pthread_mutex_init(&tt->m, NULL); in _thread_tag_init()
45 result |= pthread_key_create(&tt->k, dt ? dt : in _thread_tag_init()
47 *tag = tt; in _thread_tag_init()
62 struct _thread_tag *tt; in _thread_tag_lock() local
67 tt = *tag; in _thread_tag_lock()
68 if (pthread_mutex_lock(&tt->m) != 0) in _thread_tag_lock()
79 struct _thread_tag *tt; in _thread_tag_unlock() local
84 tt = *tag; in _thread_tag_unlock()
85 if (pthread_mutex_unlock(&tt->m) != 0) in _thread_tag_unlock()
100 struct _thread_tag *tt; in _thread_tag_storage() local
105 tt = *tag; in _thread_tag_storage()
107 ret = pthread_getspecific(tt->k); in _thread_tag_storage()
113 if (pthread_setspecific(tt->k, ret) == 0) { in _thread_tag_storage()