Lines Matching refs:self
65 pthread_t self = __pthread_self();
68 self->canceldisable = 1;
69 self->cancelasync = 0;
70 self->result = result;
72 while (self->cancelbuf) {
73 void (*f)(void *) = self->cancelbuf->__f;
74 void *x = self->cancelbuf->__x;
75 self->cancelbuf = self->cancelbuf->__next;
85 int state = a_cas(&self->detach_state, DT_JOINABLE, DT_EXITING);
87 if (state==DT_DETACHED && self->map_base) {
100 LOCK(self->killlock);
109 if (self->next == self) {
111 UNLOCK(self->killlock);
112 self->detach_state = state;
126 self->tid = 0;
127 UNLOCK(self->killlock);
134 while ((rp=self->robust_list.head) && rp != &self->robust_list.head) {
139 self->robust_list.pending = rp;
140 self->robust_list.head = *rp;
142 self->robust_list.pending = 0;
157 self->next->prev = self->prev;
158 self->prev->next = self->next;
159 self->prev = self->next = self;
161 if (state==DT_DETACHED && self->map_base) {
169 if (self->robust_list.off)
174 __unmapself(self->map_base, self->map_size);
178 a_store(&self->detach_state, DT_EXITED);
179 __wake(&self->detach_state, 1, 1);
186 struct pthread *self = __pthread_self();
187 cb->__next = self->cancelbuf;
188 self->cancelbuf = cb;
250 struct pthread *self, *new;
259 self = __pthread_self();
268 self->tsd = (void **)__pthread_tsd_main;
328 new->self = new;
337 new->canary = self->canary;
338 new->sysinfo = self->sysinfo;
382 new->next = self->next;
383 new->prev = self;
416 struct pthread *self = __pthread_self();
417 if (thread == self) {
420 struct pthread *t = self;
422 while (t != self) {