pthread_rwlock.cpp | 159 atomic_int writer_tid; member in struct:pthread_rwlock_internal_t 292 if (atomic_load_explicit(&rwlock->writer_tid, memory_order_relaxed) == __get_thread()->tid) { 355 atomic_store_explicit(&rwlock->writer_tid, __get_thread()->tid, memory_order_relaxed); 365 if (atomic_load_explicit(&rwlock->writer_tid, memory_order_relaxed) == __get_thread()->tid) { 455 if (atomic_load_explicit(&rwlock->writer_tid, memory_order_relaxed) != __get_thread()->tid) { 458 atomic_store_explicit(&rwlock->writer_tid, 0, memory_order_relaxed);
|