Lines Matching refs:protocol
2003 int protocol; in TEST() local
2004 ASSERT_EQ(0, pthread_mutexattr_getprotocol(&attr, &protocol)); in TEST()
2005 ASSERT_EQ(PTHREAD_PRIO_NONE, protocol); in TEST()
2009 ASSERT_EQ(0, pthread_mutexattr_getprotocol(&attr, &protocol)); in TEST()
2010 ASSERT_EQ(protocol, set_protocol); in TEST()
2018 explicit PthreadMutex(int mutex_type, int protocol = PTHREAD_PRIO_NONE) { in PthreadMutex()
2019 init(mutex_type, protocol); in PthreadMutex()
2027 void init(int mutex_type, int protocol) { in init()
2031 ASSERT_EQ(0, pthread_mutexattr_setprotocol(&attr, protocol)); in init()
2055 static void TestPthreadMutexLockNormal(int protocol) { in TestPthreadMutexLockNormal() argument
2056 PthreadMutex m(PTHREAD_MUTEX_NORMAL, protocol); in TestPthreadMutexLockNormal()
2059 if (protocol == PTHREAD_PRIO_INHERIT) { in TestPthreadMutexLockNormal()
2068 static void TestPthreadMutexLockErrorCheck(int protocol) { in TestPthreadMutexLockErrorCheck() argument
2069 PthreadMutex m(PTHREAD_MUTEX_ERRORCHECK, protocol); in TestPthreadMutexLockErrorCheck()
2076 if (protocol == PTHREAD_PRIO_NONE) { in TestPthreadMutexLockErrorCheck()
2085 static void TestPthreadMutexLockRecursive(int protocol) { in TestPthreadMutexLockRecursive() argument
2086 PthreadMutex m(PTHREAD_MUTEX_RECURSIVE, protocol); in TestPthreadMutexLockRecursive()
2252 int protocol; member in PIMutexWakeupHelper
2277 if (helper->protocol == PTHREAD_PRIO_INHERIT) { in thread_fn()
2287 explicit PIMutexWakeupHelper(int mutex_type, int protocol) in PIMutexWakeupHelper() argument
2288 : m(mutex_type, protocol), protocol(protocol), start_thread_m(PTHREAD_MUTEX_NORMAL) { in PIMutexWakeupHelper()
2316 for (int protocol : {PTHREAD_PRIO_INHERIT}) { in TEST()
2317 PIMutexWakeupHelper helper(type, protocol); in TEST()