Lines Matching refs:self

103   struct __pthread *self = _pthread_self ();  in __pthread_cond_timedwait_internal()  local
105 ctx.wakeup = self; in __pthread_cond_timedwait_internal()
116 __pthread_mutex_lock (&self->cancel_lock); in __pthread_cond_timedwait_internal()
117 cancelled = (self->cancel_state == PTHREAD_CANCEL_ENABLE) in __pthread_cond_timedwait_internal()
118 && self->cancel_pending; in __pthread_cond_timedwait_internal()
122 __pthread_mutex_unlock (&self->cancel_lock); in __pthread_cond_timedwait_internal()
126 self->cancel_hook = cancel_hook; in __pthread_cond_timedwait_internal()
127 self->cancel_hook_arg = &ctx; in __pthread_cond_timedwait_internal()
128 oldtype = self->cancel_type; in __pthread_cond_timedwait_internal()
131 self->cancel_type = PTHREAD_CANCEL_DEFERRED; in __pthread_cond_timedwait_internal()
138 __pthread_enqueue (&cond->__queue, self); in __pthread_cond_timedwait_internal()
143 __pthread_mutex_unlock (&self->cancel_lock); in __pthread_cond_timedwait_internal()
154 err = __pthread_timedblock (self, abstime, clock_id); in __pthread_cond_timedwait_internal()
158 __pthread_block (self); in __pthread_cond_timedwait_internal()
162 if (self->prevp == NULL) in __pthread_cond_timedwait_internal()
181 __pthread_dequeue (self); in __pthread_cond_timedwait_internal()
194 __pthread_block (self); in __pthread_cond_timedwait_internal()
198 __pthread_mutex_lock (&self->cancel_lock); in __pthread_cond_timedwait_internal()
199 self->cancel_hook = NULL; in __pthread_cond_timedwait_internal()
200 self->cancel_hook_arg = NULL; in __pthread_cond_timedwait_internal()
201 self->cancel_type = oldtype; in __pthread_cond_timedwait_internal()
202 cancelled = (self->cancel_state == PTHREAD_CANCEL_ENABLE) in __pthread_cond_timedwait_internal()
203 && self->cancel_pending; in __pthread_cond_timedwait_internal()
204 __pthread_mutex_unlock (&self->cancel_lock); in __pthread_cond_timedwait_internal()