Lines Matching refs:self

50   volatile pthread_descr self = thread_self();  in libpthread_hidden_def()  local
54 __pthread_lock(&cond->__c_lock, self); in libpthread_hidden_def()
63 volatile pthread_descr self = thread_self(); in pthread_cond_wait() local
71 && mutex->__m_owner != self) in pthread_cond_wait()
79 THREAD_SETMEM(self, p_condvar_avail, 0); in pthread_cond_wait()
80 __pthread_set_own_extricate_if(self, &extr); in pthread_cond_wait()
89 __pthread_lock(&cond->__c_lock, self); in pthread_cond_wait()
90 if (!(THREAD_GETMEM(self, p_canceled) in pthread_cond_wait()
91 && THREAD_GETMEM(self, p_cancelstate) == PTHREAD_CANCEL_ENABLE)) in pthread_cond_wait()
92 enqueue(&cond->__c_waiting, self); in pthread_cond_wait()
98 __pthread_set_own_extricate_if(self, 0); in pthread_cond_wait()
107 suspend(self); in pthread_cond_wait()
108 if (THREAD_GETMEM(self, p_condvar_avail) == 0 in pthread_cond_wait()
109 && (THREAD_GETMEM(self, p_woken_by_cancel) == 0 in pthread_cond_wait()
110 || THREAD_GETMEM(self, p_cancelstate) != PTHREAD_CANCEL_ENABLE)) in pthread_cond_wait()
119 __pthread_set_own_extricate_if(self, 0); in pthread_cond_wait()
124 if (THREAD_GETMEM(self, p_woken_by_cancel) in pthread_cond_wait()
125 && THREAD_GETMEM(self, p_cancelstate) == PTHREAD_CANCEL_ENABLE) { in pthread_cond_wait()
126 THREAD_SETMEM(self, p_woken_by_cancel, 0); in pthread_cond_wait()
133 restart(self); in pthread_cond_wait()
145 volatile pthread_descr self = thread_self(); in libpthread_hidden_def() local
153 && mutex->__m_owner != self) in libpthread_hidden_def()
161 THREAD_SETMEM(self, p_condvar_avail, 0); in libpthread_hidden_def()
162 __pthread_set_own_extricate_if(self, &extr); in libpthread_hidden_def()
165 __pthread_lock(&cond->__c_lock, self); in libpthread_hidden_def()
166 if (!(THREAD_GETMEM(self, p_canceled) in libpthread_hidden_def()
167 && THREAD_GETMEM(self, p_cancelstate) == PTHREAD_CANCEL_ENABLE)) in libpthread_hidden_def()
168 enqueue(&cond->__c_waiting, self); in libpthread_hidden_def()
174 __pthread_set_own_extricate_if(self, 0); in libpthread_hidden_def()
183 if (!timedsuspend(self, abstime)) { in libpthread_hidden_def()
189 __pthread_lock(&cond->__c_lock, self); in libpthread_hidden_def()
190 was_on_queue = remove_from_queue(&cond->__c_waiting, self); in libpthread_hidden_def()
194 __pthread_set_own_extricate_if(self, 0); in libpthread_hidden_def()
200 suspend(self); in libpthread_hidden_def()
203 if (THREAD_GETMEM(self, p_condvar_avail) == 0 in libpthread_hidden_def()
204 && (THREAD_GETMEM(self, p_woken_by_cancel) == 0 in libpthread_hidden_def()
205 || THREAD_GETMEM(self, p_cancelstate) != PTHREAD_CANCEL_ENABLE)) in libpthread_hidden_def()
214 __pthread_set_own_extricate_if(self, 0); in libpthread_hidden_def()
219 if (THREAD_GETMEM(self, p_woken_by_cancel) in libpthread_hidden_def()
220 && THREAD_GETMEM(self, p_cancelstate) == PTHREAD_CANCEL_ENABLE) { in libpthread_hidden_def()
221 THREAD_SETMEM(self, p_woken_by_cancel, 0); in libpthread_hidden_def()
228 restart(self); in libpthread_hidden_def()