Lines Matching refs:mutex
79 _pthread_mutex_getprioceiling(pthread_mutex_t *mutex,
84 if ((mutex == NULL) || (*mutex == NULL))
86 else if ((*mutex)->m_protocol != PTHREAD_PRIO_PROTECT)
89 *prioceiling = (*mutex)->m_prio;
96 _pthread_mutex_setprioceiling(pthread_mutex_t *mutex,
102 if ((mutex == NULL) || (*mutex == NULL))
104 else if ((*mutex)->m_protocol != PTHREAD_PRIO_PROTECT)
106 /* Lock the mutex: */
107 else if ((ret = _pthread_mutex_lock(mutex)) == 0) {
108 tmp = (*mutex)->m_prio;
110 (*mutex)->m_prio = prioceiling;
112 /* Unlock the mutex: */
113 ret = _pthread_mutex_unlock(mutex);