Lines Matching refs:curthread

62 	struct pthread *curthread;  in _thr_key_create()  local
67 curthread = _get_curthread(); in _thr_key_create()
69 THR_LOCK_ACQUIRE(curthread, &_keytable_lock); in _thr_key_create()
77 THR_LOCK_RELEASE(curthread, &_keytable_lock); in _thr_key_create()
83 THR_LOCK_RELEASE(curthread, &_keytable_lock); in _thr_key_create()
90 struct pthread *curthread; in _thr_key_delete() local
96 curthread = _get_curthread(); in _thr_key_delete()
97 THR_LOCK_ACQUIRE(curthread, &_keytable_lock); in _thr_key_delete()
104 THR_LOCK_RELEASE(curthread, &_keytable_lock); in _thr_key_delete()
111 struct pthread *curthread; in _thread_cleanupspecific() local
116 curthread = _get_curthread(); in _thread_cleanupspecific()
117 if (curthread->specific == NULL) in _thread_cleanupspecific()
119 THR_LOCK_ACQUIRE(curthread, &_keytable_lock); in _thread_cleanupspecific()
121 curthread->specific_data_count > 0; i++) { in _thread_cleanupspecific()
123 curthread->specific_data_count > 0; key++) { in _thread_cleanupspecific()
127 (curthread->specific[key].data != NULL)) { in _thread_cleanupspecific()
128 if (curthread->specific[key].seqno == in _thread_cleanupspecific()
130 data = curthread->specific[key].data; in _thread_cleanupspecific()
134 curthread->specific[key].data = NULL; in _thread_cleanupspecific()
135 curthread->specific_data_count--; in _thread_cleanupspecific()
136 } else if (curthread->specific[key].data != NULL) { in _thread_cleanupspecific()
145 curthread->specific[key].data = NULL; in _thread_cleanupspecific()
146 curthread->specific_data_count--; in _thread_cleanupspecific()
154 THR_LOCK_RELEASE(curthread, &_keytable_lock); in _thread_cleanupspecific()
156 THR_LOCK_ACQUIRE(curthread, &_keytable_lock); in _thread_cleanupspecific()
160 THR_LOCK_RELEASE(curthread, &_keytable_lock); in _thread_cleanupspecific()
161 __thr_free(curthread->specific); in _thread_cleanupspecific()
162 curthread->specific = NULL; in _thread_cleanupspecific()
163 if (curthread->specific_data_count > 0) { in _thread_cleanupspecific()
166 curthread, PTHREAD_DESTRUCTOR_ITERATIONS); in _thread_cleanupspecific()
231 struct pthread *curthread; in _thr_tsd_unload() local
235 curthread = _get_curthread(); in _thr_tsd_unload()
236 THR_LOCK_ACQUIRE(curthread, &_keytable_lock); in _thr_tsd_unload()
246 THR_LOCK_RELEASE(curthread, &_keytable_lock); in _thr_tsd_unload()