Lines Matching refs:self

64 	pthread_t self = __pthread_self();
65 self->signal_stack = stack;
74 pthread_t self = __pthread_self();
75 if (self->signal_stack == NULL) {
83 munmap(self->signal_stack, __default_guardsize);
87 self->signal_stack = NULL;
198 pthread_t self = __pthread_self();
202 self->canceldisable = 1;
203 self->cancelasync = 0;
205 self->result = result;
207 while (self->cancelbuf) {
208 void (*f)(void *) = self->cancelbuf->__f;
209 void *x = self->cancelbuf->__x;
210 self->cancelbuf = self->cancelbuf->__next;
220 int state = a_cas(&self->detach_state, DT_JOINABLE, DT_EXITING);
222 if (state==DT_DETACHED && self->map_base) {
235 LOCK(self->killlock);
247 if (self->next == self) {
249 UNLOCK(self->killlock);
250 self->detach_state = state;
267 self->tid = 0;
268 UNLOCK(self->killlock);
275 while ((rp=self->robust_list.head) && rp != &self->robust_list.head) {
280 self->robust_list.pending = rp;
281 self->robust_list.head = *rp;
283 self->robust_list.pending = 0;
298 self->next->prev = self->prev;
299 self->prev->next = self->next;
300 self->prev = self->next = self;
302 if (state==DT_DETACHED && self->map_base) {
310 if (self->robust_list.off)
315 __unmapself(self->map_base, self->map_size);
319 a_store(&self->detach_state, DT_EXITED);
320 __wake(&self->detach_state, 1, 1);
339 struct pthread *self = __pthread_self();
340 cb->__next = self->cancelbuf;
341 self->cancelbuf = cb;
424 struct pthread *self, *new;
436 self = __pthread_self();
445 self->tsd = (void **)__pthread_tsd_main;
512 new->self = new;
523 new->canary = self->canary;
524 new->sysinfo = self->sysinfo;
570 new->next = self->next;
571 new->prev = self;
605 struct pthread *self = __pthread_self();
606 if (thread == self) {
609 struct pthread *t = self;
611 while (t != self) {