Lines Matching refs:self
35 struct __pthread *self = _pthread_self (); in __pthread_exit() local
61 __pthread_mutex_lock (&self->state_lock); in __pthread_exit()
63 if (self->cancel_state == PTHREAD_CANCEL_ENABLE && self->cancel_pending) in __pthread_exit()
66 switch (self->state) in __pthread_exit()
74 __pthread_mutex_unlock (&self->state_lock); in __pthread_exit()
81 self->state = PTHREAD_EXITED; in __pthread_exit()
85 self->status = status; in __pthread_exit()
89 __pthread_cond_broadcast (&self->state_cond); in __pthread_exit()
90 __pthread_mutex_unlock (&self->state_lock); in __pthread_exit()
96 __pthread_destroy_specific (self); in __pthread_exit()
99 __pthread_sigstate_destroy (self); in __pthread_exit()
106 __pthread_thread_terminate (self); in __pthread_exit()