/bionic/libc/bionic/ |
D | pthread_spinlock.cpp | 37 Lock lock; member 46 static inline pthread_spinlock_internal_t* __get_internal_spinlock(pthread_spinlock_t* lock) { in __get_internal_spinlock() argument 47 return reinterpret_cast<pthread_spinlock_internal_t*>(lock); in __get_internal_spinlock() 51 pthread_spinlock_internal_t* lock = __get_internal_spinlock(lock_interface); in pthread_spin_init() local 52 lock->lock.init(pshared); in pthread_spin_init() 57 pthread_spinlock_internal_t* lock = __get_internal_spinlock(lock_interface); in pthread_spin_destroy() local 58 return lock->lock.trylock() ? 0 : EBUSY; in pthread_spin_destroy() 62 pthread_spinlock_internal_t* lock = __get_internal_spinlock(lock_interface); in pthread_spin_trylock() local 63 return lock->lock.trylock() ? 0 : EBUSY; in pthread_spin_trylock() 67 pthread_spinlock_internal_t* lock = __get_internal_spinlock(lock_interface); in pthread_spin_lock() local [all …]
|
D | bionic_systrace.cpp | 37 g_lock.lock(); in should_trace() 46 g_lock.lock(); in get_trace_marker_fd()
|
D | pthread_rwlock.cpp | 310 rwlock->pending_lock.lock(); in __pthread_rwlock_timedrdlock() 329 rwlock->pending_lock.lock(); in __pthread_rwlock_timedrdlock() 381 rwlock->pending_lock.lock(); in __pthread_rwlock_timedwrlock() 396 rwlock->pending_lock.lock(); in __pthread_rwlock_timedwrlock() 489 rwlock->pending_lock.lock(); in pthread_rwlock_unlock()
|
D | pthread_mutex.cpp | 267 static Lock lock; variable 309 lock.lock(); in AllocId() 311 lock.unlock(); in AllocId() 319 lock.lock(); in FreeId() 322 lock.unlock(); in FreeId()
|
D | pthread_create.cpp | 250 thread->startup_handshake_lock.lock(); in __pthread_start() 295 thread->startup_handshake_lock.lock(); in pthread_create()
|
/bionic/libc/private/ |
D | bionic_lock.h | 59 void lock() { in lock() function 81 LockGuard(Lock& lock) : lock_(lock) { in LockGuard() argument 82 lock_.lock(); in LockGuard()
|
/bionic/benchmarks/ |
D | pthread_benchmark.cpp | 149 pthread_rwlock_t lock; in BM_pthread_rwlock_read() local 150 pthread_rwlock_init(&lock, NULL); in BM_pthread_rwlock_read() 153 pthread_rwlock_rdlock(&lock); in BM_pthread_rwlock_read() 154 pthread_rwlock_unlock(&lock); in BM_pthread_rwlock_read() 157 pthread_rwlock_destroy(&lock); in BM_pthread_rwlock_read() 162 pthread_rwlock_t lock; in BM_pthread_rwlock_write() local 163 pthread_rwlock_init(&lock, NULL); in BM_pthread_rwlock_write() 166 pthread_rwlock_wrlock(&lock); in BM_pthread_rwlock_write() 167 pthread_rwlock_unlock(&lock); in BM_pthread_rwlock_write() 170 pthread_rwlock_destroy(&lock); in BM_pthread_rwlock_write()
|
D | util.h | 32 g_map_lock.lock();
|
/bionic/tests/ |
D | pthread_test.cpp | 883 pthread_rwlock_t lock; member 904 ASSERT_EQ(EBUSY, arg->trylock_function(&arg->lock)); in pthread_rwlock_wakeup_helper() 905 ASSERT_EQ(0, arg->lock_function(&arg->lock)); in pthread_rwlock_wakeup_helper() 907 ASSERT_EQ(0, pthread_rwlock_unlock(&arg->lock)); in pthread_rwlock_wakeup_helper() 914 ASSERT_EQ(0, pthread_rwlock_init(&wakeup_arg.lock, NULL)); in test_pthread_rwlock_reader_wakeup_writer() 915 ASSERT_EQ(0, pthread_rwlock_rdlock(&wakeup_arg.lock)); in test_pthread_rwlock_reader_wakeup_writer() 928 ASSERT_EQ(0, pthread_rwlock_unlock(&wakeup_arg.lock)); in test_pthread_rwlock_reader_wakeup_writer() 932 ASSERT_EQ(0, pthread_rwlock_destroy(&wakeup_arg.lock)); in test_pthread_rwlock_reader_wakeup_writer() 943 test_pthread_rwlock_reader_wakeup_writer([&](pthread_rwlock_t* lock) { in TEST() argument 944 return pthread_rwlock_timedwrlock(lock, &ts); in TEST() [all …]
|
/bionic/libc/kernel/uapi/drm/ |
D | drm_sarea.h | 47 struct drm_hw_lock lock; member
|
D | drm.h | 47 #define _DRM_LOCK_IS_HELD(lock) ((lock) & _DRM_LOCK_HELD) argument 48 #define _DRM_LOCK_IS_CONT(lock) ((lock) & _DRM_LOCK_CONT) argument 49 #define _DRM_LOCKING_CONTEXT(lock) ((lock) & ~(_DRM_LOCK_HELD | _DRM_LOCK_CONT)) argument 71 __volatile__ unsigned int lock; member
|
D | via_drm.h | 113 __u32 lock; member
|
/bionic/libc/system_properties/ |
D | context_node.cpp | 46 lock_.lock(); in Open()
|
/bionic/libc/kernel/uapi/linux/ |
D | dlm_device.h | 59 struct dlm_lock_params lock; member
|
D | cdrom.h | 641 __u8 lock : 1; member 643 __u8 lock : 1; member
|
D | audit.h | 326 __u32 lock; member
|
D | perf_event.h | 240 __u32 lock; member
|
/bionic/libc/malloc_debug/ |
D | MapData.cpp | 149 std::lock_guard<std::mutex> lock(m_); in find() local
|
D | RecordData.cpp | 122 std::lock_guard<std::mutex> lock(dump_lock_); in Dump() local
|
D | PointerData.cpp | 535 pointer_mutex_.lock(); in PrepareFork() 536 frame_mutex_.lock(); in PrepareFork() 537 free_pointer_mutex_.lock(); in PrepareFork()
|
/bionic/libc/tzcode/ |
D | localtime.c | 22 static int lock(void) { return pthread_mutex_lock(&locallock); } in lock() function 25 static int lock(void) { return 0; } in lock() function 1308 if (lock() != 0) in tzsetwall() 1328 if (lock() != 0) in tzset() 1338 if (lock() != 0) in gmtcheck() 1493 int err = lock(); in localtime_tzset() 2149 int err = lock(); in mktime() 2229 int err = lock(); in time2posix() 2274 int err = lock(); in posix2time()
|
/bionic/tools/versioner/src/ |
D | Driver.cpp | 182 std::unique_lock<std::mutex> lock(cc1_init_mutex); in generateTargetCC1Flags() local
|
D | DeclarationDatabase.cpp | 340 std::unique_lock<std::mutex> lock(this->mutex); in parseAST() local
|
/bionic/docs/ |
D | status.md | 135 old lookup only held the global thread list lock for the duration of
|