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
291 if (atomic_load_explicit(&rwlock->writer_tid, memory_order_relaxed) == __get_thread()->tid) { in __pthread_rwlock_timedrdlock()
354 atomic_store_explicit(&rwlock->writer_tid, __get_thread()->tid, memory_order_relaxed); in __pthread_rwlock_trywrlock()
363 if (atomic_load_explicit(&rwlock->writer_tid, memory_order_relaxed) == __get_thread()->tid) { in __pthread_rwlock_timedwrlock()
491 if (atomic_load_explicit(&rwlock->writer_tid, memory_order_relaxed) != __get_thread()->tid) { in pthread_rwlock_unlock()
494 atomic_store_explicit(&rwlock->writer_tid, 0, memory_order_relaxed); in pthread_rwlock_unlock()
/bionic/tests/
Dpthread_test.cpp1312 std::atomic<pid_t> writer_tid; in TEST() local
1313 helper.CreateWriterThread(writer_thread, writer_tid); in TEST()
1314 WaitUntilThreadSleep(writer_tid); in TEST()
1330 std::atomic<pid_t> writer_tid; in TEST() local
1331 helper.CreateWriterThread(writer_thread, writer_tid); in TEST()
1332 WaitUntilThreadSleep(writer_tid); in TEST()