/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 | 38 g_lock.lock(); in should_trace() 47 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() 513 rwlock->pending_lock.lock(); in pthread_rwlock_unlock()
|
D | pthread_mutex.cpp | 268 static Lock lock; variable 310 lock.lock(); in AllocId() 312 lock.unlock(); in AllocId() 320 lock.lock(); in FreeId() 323 lock.unlock(); in FreeId()
|
D | pthread_create.cpp | 341 thread->startup_handshake_lock.lock(); in __pthread_start() 391 thread->startup_handshake_lock.lock(); in pthread_create()
|
/bionic/tests/ |
D | pthread_test.cpp | 916 pthread_rwlock_t lock; member 937 ASSERT_EQ(EBUSY, arg->trylock_function(&arg->lock)); in pthread_rwlock_wakeup_helper() 938 ASSERT_EQ(0, arg->lock_function(&arg->lock)); in pthread_rwlock_wakeup_helper() 940 ASSERT_EQ(0, pthread_rwlock_unlock(&arg->lock)); in pthread_rwlock_wakeup_helper() 947 ASSERT_EQ(0, pthread_rwlock_init(&wakeup_arg.lock, nullptr)); in test_pthread_rwlock_reader_wakeup_writer() 948 ASSERT_EQ(0, pthread_rwlock_rdlock(&wakeup_arg.lock)); in test_pthread_rwlock_reader_wakeup_writer() 961 ASSERT_EQ(0, pthread_rwlock_unlock(&wakeup_arg.lock)); in test_pthread_rwlock_reader_wakeup_writer() 965 ASSERT_EQ(0, pthread_rwlock_destroy(&wakeup_arg.lock)); in test_pthread_rwlock_reader_wakeup_writer() 976 test_pthread_rwlock_reader_wakeup_writer([&](pthread_rwlock_t* lock) { in TEST() argument 977 return pthread_rwlock_timedwrlock(lock, &ts); in TEST() [all …]
|
D | dlfcn_test.cpp | 1433 std::unique_lock<std::mutex> lock(mtx); in TEST() local 1436 lock.unlock(); in TEST() 1445 lock.lock(); in TEST() 1446 cv.wait(lock, [&] { return thread2_thread_local_dtor_initialized; }); in TEST() 1447 lock.unlock(); in TEST() 1461 std::unique_lock<std::mutex> lock(mtx); in TEST() local 1462 cv.wait(lock, [&] { return thread1_dlopen_complete; }); in TEST() 1464 lock.unlock(); in TEST() 1472 lock.lock(); in TEST() 1474 lock.unlock(); in TEST() [all …]
|
/bionic/benchmarks/ |
D | pthread_benchmark.cpp | 149 pthread_rwlock_t lock; in BM_pthread_rwlock_read() local 150 pthread_rwlock_init(&lock, nullptr); 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, nullptr); 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 | 34 g_map_lock.lock();
|
D | README.md | 141 specific cores, or to lock cores at specific frequencies. Some phones have a big.LITTLE core setup, 178 To lock the CPU frequency, use the sysfs interface at `/sys/devices/system/cpu/cpu*/cpufreq/`.
|
/bionic/libc/private/ |
D | bionic_lock.h | 59 void lock() { in lock() function 88 explicit LockGuard(Lock& lock) : lock_(lock) { in LockGuard() argument 89 lock_.lock(); in LockGuard()
|
/bionic/libc/malloc_debug/ |
D | malloc_debug.cpp | 373 ScopedConcurrentLock lock; in debug_get_malloc_leak_info() local 408 ScopedConcurrentLock lock; in debug_malloc_usable_size() local 473 ScopedConcurrentLock lock; in debug_malloc() local 550 ScopedConcurrentLock lock; in debug_free() local 569 ScopedConcurrentLock lock; in debug_memalign() local 649 ScopedConcurrentLock lock; in debug_realloc() local 769 ScopedConcurrentLock lock; in debug_calloc() local 836 ScopedConcurrentLock lock; in debug_malloc_info() local 891 ScopedConcurrentLock lock; in debug_malloc_iterate() local 906 ScopedConcurrentLock lock; in debug_malloc_disable() local [all …]
|
D | PointerData.cpp | 618 free_pointer_mutex_.lock(); in PrepareFork() 619 pointer_mutex_.lock(); in PrepareFork() 620 frame_mutex_.lock(); in PrepareFork()
|
D | RecordData.cpp | 122 std::lock_guard<std::mutex> lock(dump_lock_); in Dump() local
|
D | MapData.cpp | 180 std::lock_guard<std::mutex> lock(m_); in find() local
|
/bionic/libc/kernel/uapi/drm/ |
D | drm.h | 49 #define _DRM_LOCK_IS_HELD(lock) ((lock) & _DRM_LOCK_HELD) argument 50 #define _DRM_LOCK_IS_CONT(lock) ((lock) & _DRM_LOCK_CONT) argument 51 #define _DRM_LOCKING_CONTEXT(lock) ((lock) & ~(_DRM_LOCK_HELD | _DRM_LOCK_CONT)) argument 73 __volatile__ unsigned int lock; member
|
D | drm_sarea.h | 48 struct drm_hw_lock lock; member
|
D | via_drm.h | 114 __u32 lock; member
|
/bionic/libfdtrack/ |
D | fdtrack.cpp | 98 std::lock_guard<std::mutex> lock(entry->mutex); in fd_hook() local 104 std::lock_guard<std::mutex> lock(entry->mutex); in fd_hook() local
|
/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
|
/bionic/libc/async_safe/ |
D | README.md | 7 beneficial to have this lock-free and therefore async_safe mechanism to write to logd, connecting
|
/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 | 176 std::unique_lock<std::mutex> lock(cc1_init_mutex); in generateTargetCC1Flags() local
|