Searched refs:wakeup_arg (Results 1 – 1 of 1) sorted by relevance
945 RwlockWakeupHelperArg wakeup_arg; in test_pthread_rwlock_reader_wakeup_writer() local946 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()[all …]