Home | History | Annotate | Download | only in libpthread

Lines Matching defs:mutex

125 pthread_cond_timedwait(pthread_cond_t *cond, pthread_mutex_t *mutex,
134 return __libc_cond_timedwait_stub(cond, mutex, abstime);
138 pthread__error(EINVAL, "Invalid mutex",
139 mutex->ptm_magic == _PT_MUTEX_MAGIC);
140 pthread__error(EPERM, "Mutex not locked in condition wait",
141 mutex->ptm_owner != NULL);
153 cond->ptc_mutex = mutex;
174 pthread_mutex_unlock(mutex);
188 pthread_mutex_lock(mutex);
205 pthread_mutex_unlock(mutex);
210 pthread_mutex_lock(mutex);
216 * If cancelled then exit. POSIX dictates that the mutex must be
228 pthread_cond_wait(pthread_cond_t *cond, pthread_mutex_t *mutex)
231 return __libc_cond_wait_stub(cond, mutex);
233 return pthread_cond_timedwait(cond, mutex, NULL);
240 pthread_mutex_t *mutex;
251 mutex = cond->ptc_mutex;
276 /* Now transfer waiter to the mutex. */
277 pthread__mutex_deferwake(self, mutex, head);
285 pthread_mutex_t *mutex;
299 mutex = cond->ptc_mutex;
317 /* Now transfer waiters to the mutex. */
318 pthread__mutex_deferwake(self, mutex, head);