Home
last modified time | relevance | path

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

/bionic/benchmarks/
Dpthread_benchmark.cpp127 pthread_rwlock_t lock; in Run() local
128 pthread_rwlock_init(&lock, NULL); in Run()
132 pthread_rwlock_rdlock(&lock); in Run()
133 pthread_rwlock_unlock(&lock); in Run()
137 pthread_rwlock_destroy(&lock); in Run()
143 pthread_rwlock_t lock; in Run() local
144 pthread_rwlock_init(&lock, NULL); in Run()
148 pthread_rwlock_wrlock(&lock); in Run()
149 pthread_rwlock_unlock(&lock); in Run()
153 pthread_rwlock_destroy(&lock); in Run()
/bionic/tests/
Dpthread_test.cpp739 pthread_rwlock_t lock; member
755 ASSERT_EQ(EBUSY, pthread_rwlock_trywrlock(&arg->lock)); in pthread_rwlock_reader_wakeup_writer_helper()
756 ASSERT_EQ(0, pthread_rwlock_wrlock(&arg->lock)); in pthread_rwlock_reader_wakeup_writer_helper()
758 ASSERT_EQ(0, pthread_rwlock_unlock(&arg->lock)); in pthread_rwlock_reader_wakeup_writer_helper()
765 ASSERT_EQ(0, pthread_rwlock_init(&wakeup_arg.lock, NULL)); in TEST()
766 ASSERT_EQ(0, pthread_rwlock_rdlock(&wakeup_arg.lock)); in TEST()
777 ASSERT_EQ(0, pthread_rwlock_unlock(&wakeup_arg.lock)); in TEST()
781 ASSERT_EQ(0, pthread_rwlock_destroy(&wakeup_arg.lock)); in TEST()
789 ASSERT_EQ(EBUSY, pthread_rwlock_tryrdlock(&arg->lock)); in pthread_rwlock_writer_wakeup_reader_helper()
790 ASSERT_EQ(0, pthread_rwlock_rdlock(&arg->lock)); in pthread_rwlock_writer_wakeup_reader_helper()
[all …]
/bionic/libc/bionic/
Dbionic_systrace.cpp43 g_lock.lock(); in should_trace()
78 g_lock.lock(); in get_trace_marker_fd()
Dpthread_rwlock.cpp317 rwlock->pending_lock.lock(); in __pthread_rwlock_timedrdlock()
336 rwlock->pending_lock.lock(); in __pthread_rwlock_timedrdlock()
395 rwlock->pending_lock.lock(); in __pthread_rwlock_timedwrlock()
410 rwlock->pending_lock.lock(); in __pthread_rwlock_timedwrlock()
489 rwlock->pending_lock.lock(); in pthread_rwlock_unlock()
Dmalloc_debug_common.h70 pthread_mutex_t lock; member
Dmalloc_debug_check.cpp116 static pthread_mutex_t lock = PTHREAD_MUTEX_INITIALIZER; variable
198 ScopedPthreadMutexLocker locker(&lock); in add()
212 ScopedPthreadMutexLocker locker(&lock); in del()
320 ScopedPthreadMutexLocker locker(&lock); in del_leak()
Dmalloc_debug_leak.cpp137 ScopedPthreadMutexLocker locker(&g_hash_table->lock); in record_backtrace()
342 ScopedPthreadMutexLocker locker(&g_hash_table->lock); in leak_free()
Dmalloc_debug_common.cpp182 ScopedPthreadMutexLocker locker(&g_hash_table.lock); in get_malloc_leak_info()
/bionic/libc/kernel/uapi/drm/
Ddrm_sarea.h51 struct drm_hw_lock lock; member
Ddrm.h50 #define _DRM_LOCK_IS_HELD(lock) ((lock) & _DRM_LOCK_HELD) argument
51 #define _DRM_LOCK_IS_CONT(lock) ((lock) & _DRM_LOCK_CONT) argument
52 #define _DRM_LOCKING_CONTEXT(lock) ((lock) & ~(_DRM_LOCK_HELD | _DRM_LOCK_CONT)) argument
80 __volatile__ unsigned int lock; member
Dvia_drm.h135 __u32 lock; member
/bionic/libc/private/
Dbionic_lock.h54 void lock() { in lock() function
/bionic/libc/kernel/uapi/linux/
Ddlm_device.h69 struct dlm_lock_params lock; member
Dperf_event.h231 __u32 lock; member
Dcdrom.h796 __u8 lock : 1; member
799 __u8 lock : 1; member
Daudit.h372 __u32 lock; member