Lines Matching defs:type
44 ap->type = PTHREAD_MUTEX_DEFAULT;
203 * various attributes into one type argument and calls mutex_init().
211 int type;
215 * All of the pshared, type, protocol, robust attributes
221 type = ap->pshared | ap->type | ap->protocol | ap->robustness;
225 type = DEFAULT_TYPE | PTHREAD_MUTEX_DEFAULT |
229 return (mutex_init((mutex_t *)mutex, type, &prioceiling));
273 * pthread_mutexattr_settype: sets the type attribute
276 pthread_mutexattr_settype(pthread_mutexattr_t *attr, int type)
282 switch (type) {
284 type = LOCK_NORMAL;
287 type = LOCK_ERRORCHECK;
290 type = LOCK_RECURSIVE | LOCK_ERRORCHECK;
295 ap->type = type;
301 * pthread_mutexattr_gettype: gets the type attribute.
307 int type;
312 switch (ap->type) {
314 type = PTHREAD_MUTEX_NORMAL;
317 type = PTHREAD_MUTEX_ERRORCHECK;
320 type = PTHREAD_MUTEX_RECURSIVE;
325 *typep = type;