Home
last modified time | relevance | path

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

/bionic/libc/bionic/
Dpthread_rwlock.cpp159 atomic_int writer_tid; member
292 if (atomic_load_explicit(&rwlock->writer_tid, memory_order_relaxed) == __get_thread()->tid) { in __pthread_rwlock_timedrdlock()
355 atomic_store_explicit(&rwlock->writer_tid, __get_thread()->tid, memory_order_relaxed); in __pthread_rwlock_trywrlock()
365 if (atomic_load_explicit(&rwlock->writer_tid, memory_order_relaxed) == __get_thread()->tid) { in __pthread_rwlock_timedwrlock()
455 if (atomic_load_explicit(&rwlock->writer_tid, memory_order_relaxed) != __get_thread()->tid) { in pthread_rwlock_unlock()
458 atomic_store_explicit(&rwlock->writer_tid, 0, memory_order_relaxed); in pthread_rwlock_unlock()
/bionic/tests/
Dpthread_test.cpp959 std::atomic<pid_t> writer_tid; in TEST() local
960 helper.CreateWriterThread(writer_thread, writer_tid); in TEST()
961 WaitUntilThreadSleep(writer_tid); in TEST()
977 std::atomic<pid_t> writer_tid; in TEST() local
978 helper.CreateWriterThread(writer_thread, writer_tid); in TEST()
979 WaitUntilThreadSleep(writer_tid); in TEST()