Lines Matching refs:wakeup_arg
975 RwlockWakeupHelperArg wakeup_arg; in test_pthread_rwlock_reader_wakeup_writer() local
976 ASSERT_EQ(0, pthread_rwlock_init(&wakeup_arg.lock, nullptr)); in test_pthread_rwlock_reader_wakeup_writer()
977 ASSERT_EQ(0, pthread_rwlock_rdlock(&wakeup_arg.lock)); in test_pthread_rwlock_reader_wakeup_writer()
978 wakeup_arg.progress = RwlockWakeupHelperArg::LOCK_INITIALIZED; in test_pthread_rwlock_reader_wakeup_writer()
979 wakeup_arg.tid = 0; in test_pthread_rwlock_reader_wakeup_writer()
980 wakeup_arg.trylock_function = &pthread_rwlock_trywrlock; in test_pthread_rwlock_reader_wakeup_writer()
981 wakeup_arg.lock_function = lock_function; in test_pthread_rwlock_reader_wakeup_writer()
985 reinterpret_cast<void* (*)(void*)>(pthread_rwlock_wakeup_helper), &wakeup_arg)); in test_pthread_rwlock_reader_wakeup_writer()
986 WaitUntilThreadSleep(wakeup_arg.tid); in test_pthread_rwlock_reader_wakeup_writer()
987 ASSERT_EQ(RwlockWakeupHelperArg::LOCK_WAITING, wakeup_arg.progress); in test_pthread_rwlock_reader_wakeup_writer()
989 wakeup_arg.progress = RwlockWakeupHelperArg::LOCK_RELEASED; in test_pthread_rwlock_reader_wakeup_writer()
990 ASSERT_EQ(0, pthread_rwlock_unlock(&wakeup_arg.lock)); in test_pthread_rwlock_reader_wakeup_writer()
993 ASSERT_EQ(RwlockWakeupHelperArg::LOCK_ACCESSED, wakeup_arg.progress); in test_pthread_rwlock_reader_wakeup_writer()
994 ASSERT_EQ(0, pthread_rwlock_destroy(&wakeup_arg.lock)); in test_pthread_rwlock_reader_wakeup_writer()
1042 RwlockWakeupHelperArg wakeup_arg; in test_pthread_rwlock_writer_wakeup_reader() local
1043 ASSERT_EQ(0, pthread_rwlock_init(&wakeup_arg.lock, nullptr)); in test_pthread_rwlock_writer_wakeup_reader()
1044 ASSERT_EQ(0, pthread_rwlock_wrlock(&wakeup_arg.lock)); in test_pthread_rwlock_writer_wakeup_reader()
1045 wakeup_arg.progress = RwlockWakeupHelperArg::LOCK_INITIALIZED; in test_pthread_rwlock_writer_wakeup_reader()
1046 wakeup_arg.tid = 0; in test_pthread_rwlock_writer_wakeup_reader()
1047 wakeup_arg.trylock_function = &pthread_rwlock_tryrdlock; in test_pthread_rwlock_writer_wakeup_reader()
1048 wakeup_arg.lock_function = lock_function; in test_pthread_rwlock_writer_wakeup_reader()
1052 reinterpret_cast<void* (*)(void*)>(pthread_rwlock_wakeup_helper), &wakeup_arg)); in test_pthread_rwlock_writer_wakeup_reader()
1053 WaitUntilThreadSleep(wakeup_arg.tid); in test_pthread_rwlock_writer_wakeup_reader()
1054 ASSERT_EQ(RwlockWakeupHelperArg::LOCK_WAITING, wakeup_arg.progress); in test_pthread_rwlock_writer_wakeup_reader()
1056 wakeup_arg.progress = RwlockWakeupHelperArg::LOCK_RELEASED; in test_pthread_rwlock_writer_wakeup_reader()
1057 ASSERT_EQ(0, pthread_rwlock_unlock(&wakeup_arg.lock)); in test_pthread_rwlock_writer_wakeup_reader()
1060 ASSERT_EQ(RwlockWakeupHelperArg::LOCK_ACCESSED, wakeup_arg.progress); in test_pthread_rwlock_writer_wakeup_reader()
1061 ASSERT_EQ(0, pthread_rwlock_destroy(&wakeup_arg.lock)); in test_pthread_rwlock_writer_wakeup_reader()
1134 RwlockWakeupHelperArg wakeup_arg; in pthread_rwlock_timedrdlock_timeout_helper() local
1135 ASSERT_EQ(0, pthread_rwlock_init(&wakeup_arg.lock, nullptr)); in pthread_rwlock_timedrdlock_timeout_helper()
1136 ASSERT_EQ(0, pthread_rwlock_wrlock(&wakeup_arg.lock)); in pthread_rwlock_timedrdlock_timeout_helper()
1137 wakeup_arg.progress = RwlockWakeupHelperArg::LOCK_INITIALIZED; in pthread_rwlock_timedrdlock_timeout_helper()
1138 wakeup_arg.tid = 0; in pthread_rwlock_timedrdlock_timeout_helper()
1139 wakeup_arg.trylock_function = &pthread_rwlock_tryrdlock; in pthread_rwlock_timedrdlock_timeout_helper()
1140 wakeup_arg.timed_lock_function = lock_function; in pthread_rwlock_timedrdlock_timeout_helper()
1141 wakeup_arg.clock = clock; in pthread_rwlock_timedrdlock_timeout_helper()
1145 reinterpret_cast<void* (*)(void*)>(pthread_rwlock_wakeup_timeout_helper), &wakeup_arg)); in pthread_rwlock_timedrdlock_timeout_helper()
1146 WaitUntilThreadSleep(wakeup_arg.tid); in pthread_rwlock_timedrdlock_timeout_helper()
1147 ASSERT_EQ(RwlockWakeupHelperArg::LOCK_WAITING, wakeup_arg.progress); in pthread_rwlock_timedrdlock_timeout_helper()
1150 ASSERT_EQ(RwlockWakeupHelperArg::LOCK_TIMEDOUT, wakeup_arg.progress); in pthread_rwlock_timedrdlock_timeout_helper()
1151 ASSERT_EQ(0, pthread_rwlock_unlock(&wakeup_arg.lock)); in pthread_rwlock_timedrdlock_timeout_helper()
1152 ASSERT_EQ(0, pthread_rwlock_destroy(&wakeup_arg.lock)); in pthread_rwlock_timedrdlock_timeout_helper()
1202 RwlockWakeupHelperArg wakeup_arg; in pthread_rwlock_timedwrlock_timeout_helper() local
1203 ASSERT_EQ(0, pthread_rwlock_init(&wakeup_arg.lock, nullptr)); in pthread_rwlock_timedwrlock_timeout_helper()
1204 ASSERT_EQ(0, pthread_rwlock_rdlock(&wakeup_arg.lock)); in pthread_rwlock_timedwrlock_timeout_helper()
1205 wakeup_arg.progress = RwlockWakeupHelperArg::LOCK_INITIALIZED; in pthread_rwlock_timedwrlock_timeout_helper()
1206 wakeup_arg.tid = 0; in pthread_rwlock_timedwrlock_timeout_helper()
1207 wakeup_arg.trylock_function = &pthread_rwlock_trywrlock; in pthread_rwlock_timedwrlock_timeout_helper()
1208 wakeup_arg.timed_lock_function = lock_function; in pthread_rwlock_timedwrlock_timeout_helper()
1209 wakeup_arg.clock = clock; in pthread_rwlock_timedwrlock_timeout_helper()
1213 reinterpret_cast<void* (*)(void*)>(pthread_rwlock_wakeup_timeout_helper), &wakeup_arg)); in pthread_rwlock_timedwrlock_timeout_helper()
1214 WaitUntilThreadSleep(wakeup_arg.tid); in pthread_rwlock_timedwrlock_timeout_helper()
1215 ASSERT_EQ(RwlockWakeupHelperArg::LOCK_WAITING, wakeup_arg.progress); in pthread_rwlock_timedwrlock_timeout_helper()
1218 ASSERT_EQ(RwlockWakeupHelperArg::LOCK_TIMEDOUT, wakeup_arg.progress); in pthread_rwlock_timedwrlock_timeout_helper()
1219 ASSERT_EQ(0, pthread_rwlock_unlock(&wakeup_arg.lock)); in pthread_rwlock_timedwrlock_timeout_helper()
1220 ASSERT_EQ(0, pthread_rwlock_destroy(&wakeup_arg.lock)); in pthread_rwlock_timedwrlock_timeout_helper()