Lines Matching refs:RwlockWakeupHelperArg
915 struct RwlockWakeupHelperArg { struct
932 static void pthread_rwlock_wakeup_helper(RwlockWakeupHelperArg* arg) { in pthread_rwlock_wakeup_helper() argument
934 ASSERT_EQ(RwlockWakeupHelperArg::LOCK_INITIALIZED, arg->progress); in pthread_rwlock_wakeup_helper()
935 arg->progress = RwlockWakeupHelperArg::LOCK_WAITING; in pthread_rwlock_wakeup_helper()
939 ASSERT_EQ(RwlockWakeupHelperArg::LOCK_RELEASED, arg->progress); in pthread_rwlock_wakeup_helper()
942 arg->progress = RwlockWakeupHelperArg::LOCK_ACCESSED; in pthread_rwlock_wakeup_helper()
946 RwlockWakeupHelperArg wakeup_arg; in test_pthread_rwlock_reader_wakeup_writer()
949 wakeup_arg.progress = RwlockWakeupHelperArg::LOCK_INITIALIZED; 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()
964 ASSERT_EQ(RwlockWakeupHelperArg::LOCK_ACCESSED, wakeup_arg.progress); in test_pthread_rwlock_reader_wakeup_writer()
1013 RwlockWakeupHelperArg wakeup_arg; in test_pthread_rwlock_writer_wakeup_reader()
1016 wakeup_arg.progress = RwlockWakeupHelperArg::LOCK_INITIALIZED; 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()
1031 ASSERT_EQ(RwlockWakeupHelperArg::LOCK_ACCESSED, wakeup_arg.progress); in test_pthread_rwlock_writer_wakeup_reader()
1079 static void pthread_rwlock_wakeup_timeout_helper(RwlockWakeupHelperArg* arg) { in pthread_rwlock_wakeup_timeout_helper()
1081 ASSERT_EQ(RwlockWakeupHelperArg::LOCK_INITIALIZED, arg->progress); in pthread_rwlock_wakeup_timeout_helper()
1082 arg->progress = RwlockWakeupHelperArg::LOCK_WAITING; in pthread_rwlock_wakeup_timeout_helper()
1099 ASSERT_EQ(RwlockWakeupHelperArg::LOCK_WAITING, arg->progress); in pthread_rwlock_wakeup_timeout_helper()
1100 arg->progress = RwlockWakeupHelperArg::LOCK_TIMEDOUT; in pthread_rwlock_wakeup_timeout_helper()
1105 RwlockWakeupHelperArg wakeup_arg; in pthread_rwlock_timedrdlock_timeout_helper()
1108 wakeup_arg.progress = RwlockWakeupHelperArg::LOCK_INITIALIZED; 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()
1173 RwlockWakeupHelperArg wakeup_arg; in pthread_rwlock_timedwrlock_timeout_helper()
1176 wakeup_arg.progress = RwlockWakeupHelperArg::LOCK_INITIALIZED; 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()