Searched refs:rwlock (Results 1 – 4 of 4) sorted by relevance
44 pthread_rwlock_t* rwlock = in RWMutexImpl() local49 bzero(rwlock, sizeof(pthread_rwlock_t)); in RWMutexImpl()58 data_ = rwlock; in RWMutexImpl()65 assert(rwlock != nullptr); in ~RWMutexImpl()66 pthread_rwlock_destroy(rwlock); in ~RWMutexImpl()67 free(rwlock); in ~RWMutexImpl()74 assert(rwlock != nullptr); in lock_shared()76 int errorcode = pthread_rwlock_rdlock(rwlock); in lock_shared()84 assert(rwlock != nullptr); in unlock_shared()94 assert(rwlock != nullptr); in lock()[all …]
16 static bool ReadLock(lldb::rwlock_t rwlock) { in ReadLock() argument17 ::AcquireSRWLockShared(GetLock(rwlock)); in ReadLock()21 static bool ReadUnlock(lldb::rwlock_t rwlock) { in ReadUnlock() argument22 ::ReleaseSRWLockShared(GetLock(rwlock)); in ReadUnlock()26 static bool WriteLock(lldb::rwlock_t rwlock) { in WriteLock() argument27 ::AcquireSRWLockExclusive(GetLock(rwlock)); in WriteLock()31 static bool WriteTryLock(lldb::rwlock_t rwlock) { in WriteTryLock() argument32 return !!::TryAcquireSRWLockExclusive(GetLock(rwlock)); in WriteTryLock()35 static bool WriteUnlock(lldb::rwlock_t rwlock) { in WriteUnlock() argument36 ::ReleaseSRWLockExclusive(GetLock(rwlock)); in WriteUnlock()
4 pthread_rwlock_t rwlock; variable9 pthread_rwlock_rdlock(&rwlock); in Thread1()13 pthread_rwlock_unlock(&rwlock); in Thread1()19 pthread_rwlock_init(&rwlock, NULL); in main()20 pthread_rwlock_rdlock(&rwlock); in main()25 pthread_rwlock_unlock(&rwlock); in main()28 pthread_rwlock_destroy(&rwlock); in main()
60 pthread_rwlock_t *rwlock, const pthread_rwlockattr_t *attr);61 extern "C" int __interceptor_pthread_rwlock_destroy(pthread_rwlock_t *rwlock);62 extern "C" int __interceptor_pthread_rwlock_trywrlock(pthread_rwlock_t *rwlock);63 extern "C" int __interceptor_pthread_rwlock_wrlock(pthread_rwlock_t *rwlock);64 extern "C" int __interceptor_pthread_rwlock_unlock(pthread_rwlock_t *rwlock);65 extern "C" int __interceptor_pthread_rwlock_rdlock(pthread_rwlock_t *rwlock);66 extern "C" int __interceptor_pthread_rwlock_tryrdlock(pthread_rwlock_t *rwlock);