Home
last modified time | relevance | path

Searched refs:wakeup_arg (Results 1 – 1 of 1) sorted by relevance

/bionic/tests/
Dpthread_test.cpp975 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()
[all …]