Lines Matching refs:wakeup_arg
946 RwlockWakeupHelperArg wakeup_arg; in test_pthread_rwlock_reader_wakeup_writer() local
947 ASSERT_EQ(0, pthread_rwlock_init(&wakeup_arg.lock, nullptr)); in test_pthread_rwlock_reader_wakeup_writer()
948 ASSERT_EQ(0, pthread_rwlock_rdlock(&wakeup_arg.lock)); in test_pthread_rwlock_reader_wakeup_writer()
949 wakeup_arg.progress = RwlockWakeupHelperArg::LOCK_INITIALIZED; in test_pthread_rwlock_reader_wakeup_writer()
950 wakeup_arg.tid = 0; in test_pthread_rwlock_reader_wakeup_writer()
951 wakeup_arg.trylock_function = &pthread_rwlock_trywrlock; in test_pthread_rwlock_reader_wakeup_writer()
952 wakeup_arg.lock_function = lock_function; in test_pthread_rwlock_reader_wakeup_writer()
956 reinterpret_cast<void* (*)(void*)>(pthread_rwlock_wakeup_helper), &wakeup_arg)); in test_pthread_rwlock_reader_wakeup_writer()
957 WaitUntilThreadSleep(wakeup_arg.tid); in test_pthread_rwlock_reader_wakeup_writer()
958 ASSERT_EQ(RwlockWakeupHelperArg::LOCK_WAITING, wakeup_arg.progress); in test_pthread_rwlock_reader_wakeup_writer()
960 wakeup_arg.progress = RwlockWakeupHelperArg::LOCK_RELEASED; in test_pthread_rwlock_reader_wakeup_writer()
961 ASSERT_EQ(0, pthread_rwlock_unlock(&wakeup_arg.lock)); in test_pthread_rwlock_reader_wakeup_writer()
964 ASSERT_EQ(RwlockWakeupHelperArg::LOCK_ACCESSED, wakeup_arg.progress); in test_pthread_rwlock_reader_wakeup_writer()
965 ASSERT_EQ(0, pthread_rwlock_destroy(&wakeup_arg.lock)); in test_pthread_rwlock_reader_wakeup_writer()
1013 RwlockWakeupHelperArg wakeup_arg; in test_pthread_rwlock_writer_wakeup_reader() local
1014 ASSERT_EQ(0, pthread_rwlock_init(&wakeup_arg.lock, nullptr)); in test_pthread_rwlock_writer_wakeup_reader()
1015 ASSERT_EQ(0, pthread_rwlock_wrlock(&wakeup_arg.lock)); in test_pthread_rwlock_writer_wakeup_reader()
1016 wakeup_arg.progress = RwlockWakeupHelperArg::LOCK_INITIALIZED; in test_pthread_rwlock_writer_wakeup_reader()
1017 wakeup_arg.tid = 0; in test_pthread_rwlock_writer_wakeup_reader()
1018 wakeup_arg.trylock_function = &pthread_rwlock_tryrdlock; in test_pthread_rwlock_writer_wakeup_reader()
1019 wakeup_arg.lock_function = lock_function; in test_pthread_rwlock_writer_wakeup_reader()
1023 reinterpret_cast<void* (*)(void*)>(pthread_rwlock_wakeup_helper), &wakeup_arg)); in test_pthread_rwlock_writer_wakeup_reader()
1024 WaitUntilThreadSleep(wakeup_arg.tid); in test_pthread_rwlock_writer_wakeup_reader()
1025 ASSERT_EQ(RwlockWakeupHelperArg::LOCK_WAITING, wakeup_arg.progress); in test_pthread_rwlock_writer_wakeup_reader()
1027 wakeup_arg.progress = RwlockWakeupHelperArg::LOCK_RELEASED; in test_pthread_rwlock_writer_wakeup_reader()
1028 ASSERT_EQ(0, pthread_rwlock_unlock(&wakeup_arg.lock)); in test_pthread_rwlock_writer_wakeup_reader()
1031 ASSERT_EQ(RwlockWakeupHelperArg::LOCK_ACCESSED, wakeup_arg.progress); in test_pthread_rwlock_writer_wakeup_reader()
1032 ASSERT_EQ(0, pthread_rwlock_destroy(&wakeup_arg.lock)); in test_pthread_rwlock_writer_wakeup_reader()
1105 RwlockWakeupHelperArg wakeup_arg; in pthread_rwlock_timedrdlock_timeout_helper() local
1106 ASSERT_EQ(0, pthread_rwlock_init(&wakeup_arg.lock, nullptr)); in pthread_rwlock_timedrdlock_timeout_helper()
1107 ASSERT_EQ(0, pthread_rwlock_wrlock(&wakeup_arg.lock)); in pthread_rwlock_timedrdlock_timeout_helper()
1108 wakeup_arg.progress = RwlockWakeupHelperArg::LOCK_INITIALIZED; in pthread_rwlock_timedrdlock_timeout_helper()
1109 wakeup_arg.tid = 0; in pthread_rwlock_timedrdlock_timeout_helper()
1110 wakeup_arg.trylock_function = &pthread_rwlock_tryrdlock; in pthread_rwlock_timedrdlock_timeout_helper()
1111 wakeup_arg.timed_lock_function = lock_function; in pthread_rwlock_timedrdlock_timeout_helper()
1112 wakeup_arg.clock = clock; in pthread_rwlock_timedrdlock_timeout_helper()
1116 reinterpret_cast<void* (*)(void*)>(pthread_rwlock_wakeup_timeout_helper), &wakeup_arg)); in pthread_rwlock_timedrdlock_timeout_helper()
1117 WaitUntilThreadSleep(wakeup_arg.tid); in pthread_rwlock_timedrdlock_timeout_helper()
1118 ASSERT_EQ(RwlockWakeupHelperArg::LOCK_WAITING, wakeup_arg.progress); in pthread_rwlock_timedrdlock_timeout_helper()
1121 ASSERT_EQ(RwlockWakeupHelperArg::LOCK_TIMEDOUT, wakeup_arg.progress); in pthread_rwlock_timedrdlock_timeout_helper()
1122 ASSERT_EQ(0, pthread_rwlock_unlock(&wakeup_arg.lock)); in pthread_rwlock_timedrdlock_timeout_helper()
1123 ASSERT_EQ(0, pthread_rwlock_destroy(&wakeup_arg.lock)); in pthread_rwlock_timedrdlock_timeout_helper()
1173 RwlockWakeupHelperArg wakeup_arg; in pthread_rwlock_timedwrlock_timeout_helper() local
1174 ASSERT_EQ(0, pthread_rwlock_init(&wakeup_arg.lock, nullptr)); in pthread_rwlock_timedwrlock_timeout_helper()
1175 ASSERT_EQ(0, pthread_rwlock_rdlock(&wakeup_arg.lock)); in pthread_rwlock_timedwrlock_timeout_helper()
1176 wakeup_arg.progress = RwlockWakeupHelperArg::LOCK_INITIALIZED; in pthread_rwlock_timedwrlock_timeout_helper()
1177 wakeup_arg.tid = 0; in pthread_rwlock_timedwrlock_timeout_helper()
1178 wakeup_arg.trylock_function = &pthread_rwlock_trywrlock; in pthread_rwlock_timedwrlock_timeout_helper()
1179 wakeup_arg.timed_lock_function = lock_function; in pthread_rwlock_timedwrlock_timeout_helper()
1180 wakeup_arg.clock = clock; in pthread_rwlock_timedwrlock_timeout_helper()
1184 reinterpret_cast<void* (*)(void*)>(pthread_rwlock_wakeup_timeout_helper), &wakeup_arg)); in pthread_rwlock_timedwrlock_timeout_helper()
1185 WaitUntilThreadSleep(wakeup_arg.tid); in pthread_rwlock_timedwrlock_timeout_helper()
1186 ASSERT_EQ(RwlockWakeupHelperArg::LOCK_WAITING, wakeup_arg.progress); in pthread_rwlock_timedwrlock_timeout_helper()
1189 ASSERT_EQ(RwlockWakeupHelperArg::LOCK_TIMEDOUT, wakeup_arg.progress); in pthread_rwlock_timedwrlock_timeout_helper()
1190 ASSERT_EQ(0, pthread_rwlock_unlock(&wakeup_arg.lock)); in pthread_rwlock_timedwrlock_timeout_helper()
1191 ASSERT_EQ(0, pthread_rwlock_destroy(&wakeup_arg.lock)); in pthread_rwlock_timedwrlock_timeout_helper()