Lines Matching defs:type
115 * 'type' can be one of USYNC_THREAD, USYNC_PROCESS, or USYNC_PROCESS_ROBUST,
126 mutex_init(mutex_t *mp, int type, void *arg)
128 int basetype = (type & ~ALL_ATTRIBUTES);
135 * USYNC_PROCESS_ROBUST is a deprecated historical type.
141 type |= (USYNC_PROCESS | LOCK_ROBUST);
145 if (type & LOCK_PRIO_PROTECT)
148 (type & (LOCK_PRIO_INHERIT | LOCK_PRIO_PROTECT))
150 ((type & LOCK_PRIO_PROTECT) &&
154 } else if (type & LOCK_ROBUST) {
167 mp->mutex_type = (uint8_t)type;
170 } else if (type != mp->mutex_type ||
171 ((type & LOCK_PRIO_PROTECT) && mp->mutex_ceiling != ceil)) {
181 mp->mutex_type = (uint8_t)type;
186 if (error == 0 && (type & LOCK_PRIO_PROTECT)) {
2610 * to make these functions faster since we know that the mutex type
3131 cond_init(cond_t *cvp, int type, void *arg)
3133 if (type != USYNC_THREAD && type != USYNC_PROCESS)
3136 cvp->cond_type = (uint16_t)type;