Lines Matching refs:self
63 pthread_descr self = thread_self(); in pthread_key_delete() local
84 th = self; in pthread_key_delete()
90 } while (th != self); in pthread_key_delete()
101 pthread_descr self = thread_self(); in pthread_setspecific() local
108 if (THREAD_GETMEM_NC(self, p_specific[idx1st]) == NULL) { in pthread_setspecific()
112 THREAD_SETMEM_NC(self, p_specific[idx1st], newp); in pthread_setspecific()
114 THREAD_GETMEM_NC(self, p_specific[idx1st])[idx2nd] = (void *) pointer; in pthread_setspecific() local
122 pthread_descr self = thread_self(); in pthread_getspecific() local
129 if (THREAD_GETMEM_NC(self, p_specific[idx1st]) == NULL in pthread_getspecific()
132 return THREAD_GETMEM_NC(self, p_specific[idx1st])[idx2nd]; in pthread_getspecific()
139 pthread_descr self = thread_self(); in __pthread_destroy_specifics() local
149 if (THREAD_GETMEM_NC(self, p_specific[i]) != NULL) in __pthread_destroy_specifics()
152 data = THREAD_GETMEM_NC(self, p_specific[i])[j]; in __pthread_destroy_specifics()
154 THREAD_GETMEM_NC(self, p_specific[i])[j] = NULL; in __pthread_destroy_specifics() local
160 __pthread_lock(THREAD_GETMEM(self, p_lock), self); in __pthread_destroy_specifics()
162 if (THREAD_GETMEM_NC(self, p_specific[i]) != NULL) { in __pthread_destroy_specifics()
163 free(THREAD_GETMEM_NC(self, p_specific[i])); in __pthread_destroy_specifics()
164 THREAD_SETMEM_NC(self, p_specific[i], NULL); in __pthread_destroy_specifics()
167 __pthread_unlock(THREAD_GETMEM(self, p_lock)); in __pthread_destroy_specifics()