Lines Matching refs:kind
306 * if-statements are used to test the value of 'kind' instead of a switch
310 static MutexT DRD_(pthread_to_drd_mutex_type)(int kind)
316 kind &= PTHREAD_MUTEX_RECURSIVE | PTHREAD_MUTEX_ERRORCHECK |
319 if (kind == PTHREAD_MUTEX_RECURSIVE)
321 else if (kind == PTHREAD_MUTEX_ERRORCHECK)
323 else if (kind == PTHREAD_MUTEX_NORMAL)
325 else if (kind == PTHREAD_MUTEX_DEFAULT)
328 else if (kind == PTHREAD_MUTEX_ADAPTIVE_NP)
373 const int kind = mutex->__m_kind & 3;
374 return DRD_(pthread_to_drd_mutex_type)(kind);
380 const int kind = mutex->__data.__kind & 3;
381 return DRD_(pthread_to_drd_mutex_type)(kind);