Lines Matching refs:wakeup_arg
945 RwlockWakeupHelperArg wakeup_arg; in test_pthread_rwlock_reader_wakeup_writer() local
946 ASSERT_EQ(0, pthread_rwlock_init(&wakeup_arg.lock, nullptr)); in test_pthread_rwlock_reader_wakeup_writer()
947 ASSERT_EQ(0, pthread_rwlock_rdlock(&wakeup_arg.lock)); in test_pthread_rwlock_reader_wakeup_writer()
948 wakeup_arg.progress = RwlockWakeupHelperArg::LOCK_INITIALIZED; in test_pthread_rwlock_reader_wakeup_writer()
949 wakeup_arg.tid = 0; in test_pthread_rwlock_reader_wakeup_writer()
950 wakeup_arg.trylock_function = &pthread_rwlock_trywrlock; in test_pthread_rwlock_reader_wakeup_writer()
951 wakeup_arg.lock_function = lock_function; in test_pthread_rwlock_reader_wakeup_writer()
955 reinterpret_cast<void* (*)(void*)>(pthread_rwlock_wakeup_helper), &wakeup_arg)); in test_pthread_rwlock_reader_wakeup_writer()
956 WaitUntilThreadSleep(wakeup_arg.tid); in test_pthread_rwlock_reader_wakeup_writer()
957 ASSERT_EQ(RwlockWakeupHelperArg::LOCK_WAITING, wakeup_arg.progress); in test_pthread_rwlock_reader_wakeup_writer()
959 wakeup_arg.progress = RwlockWakeupHelperArg::LOCK_RELEASED; in test_pthread_rwlock_reader_wakeup_writer()
960 ASSERT_EQ(0, pthread_rwlock_unlock(&wakeup_arg.lock)); in test_pthread_rwlock_reader_wakeup_writer()
963 ASSERT_EQ(RwlockWakeupHelperArg::LOCK_ACCESSED, wakeup_arg.progress); in test_pthread_rwlock_reader_wakeup_writer()
964 ASSERT_EQ(0, pthread_rwlock_destroy(&wakeup_arg.lock)); in test_pthread_rwlock_reader_wakeup_writer()
1012 RwlockWakeupHelperArg wakeup_arg; in test_pthread_rwlock_writer_wakeup_reader() local
1013 ASSERT_EQ(0, pthread_rwlock_init(&wakeup_arg.lock, nullptr)); in test_pthread_rwlock_writer_wakeup_reader()
1014 ASSERT_EQ(0, pthread_rwlock_wrlock(&wakeup_arg.lock)); in test_pthread_rwlock_writer_wakeup_reader()
1015 wakeup_arg.progress = RwlockWakeupHelperArg::LOCK_INITIALIZED; in test_pthread_rwlock_writer_wakeup_reader()
1016 wakeup_arg.tid = 0; in test_pthread_rwlock_writer_wakeup_reader()
1017 wakeup_arg.trylock_function = &pthread_rwlock_tryrdlock; in test_pthread_rwlock_writer_wakeup_reader()
1018 wakeup_arg.lock_function = lock_function; in test_pthread_rwlock_writer_wakeup_reader()
1022 reinterpret_cast<void* (*)(void*)>(pthread_rwlock_wakeup_helper), &wakeup_arg)); in test_pthread_rwlock_writer_wakeup_reader()
1023 WaitUntilThreadSleep(wakeup_arg.tid); in test_pthread_rwlock_writer_wakeup_reader()
1024 ASSERT_EQ(RwlockWakeupHelperArg::LOCK_WAITING, wakeup_arg.progress); in test_pthread_rwlock_writer_wakeup_reader()
1026 wakeup_arg.progress = RwlockWakeupHelperArg::LOCK_RELEASED; in test_pthread_rwlock_writer_wakeup_reader()
1027 ASSERT_EQ(0, pthread_rwlock_unlock(&wakeup_arg.lock)); in test_pthread_rwlock_writer_wakeup_reader()
1030 ASSERT_EQ(RwlockWakeupHelperArg::LOCK_ACCESSED, wakeup_arg.progress); in test_pthread_rwlock_writer_wakeup_reader()
1031 ASSERT_EQ(0, pthread_rwlock_destroy(&wakeup_arg.lock)); in test_pthread_rwlock_writer_wakeup_reader()
1104 RwlockWakeupHelperArg wakeup_arg; in pthread_rwlock_timedrdlock_timeout_helper() local
1105 ASSERT_EQ(0, pthread_rwlock_init(&wakeup_arg.lock, nullptr)); in pthread_rwlock_timedrdlock_timeout_helper()
1106 ASSERT_EQ(0, pthread_rwlock_wrlock(&wakeup_arg.lock)); in pthread_rwlock_timedrdlock_timeout_helper()
1107 wakeup_arg.progress = RwlockWakeupHelperArg::LOCK_INITIALIZED; in pthread_rwlock_timedrdlock_timeout_helper()
1108 wakeup_arg.tid = 0; in pthread_rwlock_timedrdlock_timeout_helper()
1109 wakeup_arg.trylock_function = &pthread_rwlock_tryrdlock; in pthread_rwlock_timedrdlock_timeout_helper()
1110 wakeup_arg.timed_lock_function = lock_function; in pthread_rwlock_timedrdlock_timeout_helper()
1111 wakeup_arg.clock = clock; in pthread_rwlock_timedrdlock_timeout_helper()
1115 reinterpret_cast<void* (*)(void*)>(pthread_rwlock_wakeup_timeout_helper), &wakeup_arg)); in pthread_rwlock_timedrdlock_timeout_helper()
1116 WaitUntilThreadSleep(wakeup_arg.tid); in pthread_rwlock_timedrdlock_timeout_helper()
1117 ASSERT_EQ(RwlockWakeupHelperArg::LOCK_WAITING, wakeup_arg.progress); in pthread_rwlock_timedrdlock_timeout_helper()
1120 ASSERT_EQ(RwlockWakeupHelperArg::LOCK_TIMEDOUT, wakeup_arg.progress); in pthread_rwlock_timedrdlock_timeout_helper()
1121 ASSERT_EQ(0, pthread_rwlock_unlock(&wakeup_arg.lock)); in pthread_rwlock_timedrdlock_timeout_helper()
1122 ASSERT_EQ(0, pthread_rwlock_destroy(&wakeup_arg.lock)); in pthread_rwlock_timedrdlock_timeout_helper()
1172 RwlockWakeupHelperArg wakeup_arg; in pthread_rwlock_timedwrlock_timeout_helper() local
1173 ASSERT_EQ(0, pthread_rwlock_init(&wakeup_arg.lock, nullptr)); in pthread_rwlock_timedwrlock_timeout_helper()
1174 ASSERT_EQ(0, pthread_rwlock_rdlock(&wakeup_arg.lock)); in pthread_rwlock_timedwrlock_timeout_helper()
1175 wakeup_arg.progress = RwlockWakeupHelperArg::LOCK_INITIALIZED; in pthread_rwlock_timedwrlock_timeout_helper()
1176 wakeup_arg.tid = 0; in pthread_rwlock_timedwrlock_timeout_helper()
1177 wakeup_arg.trylock_function = &pthread_rwlock_trywrlock; in pthread_rwlock_timedwrlock_timeout_helper()
1178 wakeup_arg.timed_lock_function = lock_function; in pthread_rwlock_timedwrlock_timeout_helper()
1179 wakeup_arg.clock = clock; in pthread_rwlock_timedwrlock_timeout_helper()
1183 reinterpret_cast<void* (*)(void*)>(pthread_rwlock_wakeup_timeout_helper), &wakeup_arg)); in pthread_rwlock_timedwrlock_timeout_helper()
1184 WaitUntilThreadSleep(wakeup_arg.tid); in pthread_rwlock_timedwrlock_timeout_helper()
1185 ASSERT_EQ(RwlockWakeupHelperArg::LOCK_WAITING, wakeup_arg.progress); in pthread_rwlock_timedwrlock_timeout_helper()
1188 ASSERT_EQ(RwlockWakeupHelperArg::LOCK_TIMEDOUT, wakeup_arg.progress); in pthread_rwlock_timedwrlock_timeout_helper()
1189 ASSERT_EQ(0, pthread_rwlock_unlock(&wakeup_arg.lock)); in pthread_rwlock_timedwrlock_timeout_helper()
1190 ASSERT_EQ(0, pthread_rwlock_destroy(&wakeup_arg.lock)); in pthread_rwlock_timedwrlock_timeout_helper()