Lines Matching defs:mattr
203 _pthread_mutexattr_getprotocol(pthread_mutexattr_t *mattr, int *protocol)
207 if (mattr == NULL || *mattr == NULL)
210 *protocol = (*mattr)->m_protocol;
216 _pthread_mutexattr_setprotocol(pthread_mutexattr_t *mattr, int protocol)
220 if (mattr == NULL || *mattr == NULL ||
224 (*mattr)->m_protocol = protocol;
225 (*mattr)->m_ceiling = THR_MAX_RR_PRIORITY;
231 _pthread_mutexattr_getprioceiling(pthread_mutexattr_t *mattr, int *prioceiling)
235 if (mattr == NULL || *mattr == NULL)
237 else if ((*mattr)->m_protocol != PTHREAD_PRIO_PROTECT)
240 *prioceiling = (*mattr)->m_ceiling;
246 _pthread_mutexattr_setprioceiling(pthread_mutexattr_t *mattr, int prioceiling)
250 if (mattr == NULL || *mattr == NULL)
252 else if ((*mattr)->m_protocol != PTHREAD_PRIO_PROTECT)
255 (*mattr)->m_ceiling = prioceiling;
261 _pthread_mutexattr_getrobust(pthread_mutexattr_t *mattr, int *robust)
265 if (mattr == NULL || *mattr == NULL) {
269 *robust = (*mattr)->m_robust;
275 _pthread_mutexattr_setrobust(pthread_mutexattr_t *mattr, int robust)
279 if (mattr == NULL || *mattr == NULL) {
286 (*mattr)->m_robust = robust;