Searched refs:lock (Results 1 - 25 of 37) sorted by relevance

12

/bionic/libc/bionic/
H A Dpthread_spinlock.cpp37 Lock lock; member in struct:pthread_spinlock_internal_t
46 static inline pthread_spinlock_internal_t* __get_internal_spinlock(pthread_spinlock_t* lock) { argument
47 return reinterpret_cast<pthread_spinlock_internal_t*>(lock);
51 pthread_spinlock_internal_t* lock = __get_internal_spinlock(lock_interface); local
52 lock->lock.init(pshared);
57 pthread_spinlock_internal_t* lock = __get_internal_spinlock(lock_interface); local
58 return lock->lock.trylock() ? 0 : EBUSY;
62 pthread_spinlock_internal_t* lock local
67 pthread_spinlock_internal_t* lock = __get_internal_spinlock(lock_interface); local
78 pthread_spinlock_internal_t* lock = __get_internal_spinlock(lock_interface); local
[all...]
H A Dbionic_systrace.cpp37 g_lock.lock();
46 g_lock.lock();
H A Dpthread_rwlock.cpp40 * Possible states of a read/write lock:
43 * - one or more readers sharing the lock at the same time (read-locked)
44 * - one writer holding the lock (write-lock)
47 * - trying to get the write-lock while there are any readers blocks
48 * - trying to get the read-lock while there is a writer blocks
49 * - a single thread can acquire the lock multiple times in read mode
52 * to acquire the lock
53 * - in write mode while already holding the lock (whether in read or write mode)
54 * - in read mode while already holding the lock i
[all...]
H A Dpthread_mutex.cpp267 static Lock lock; member in namespace:PIMutexAllocator
309 lock.lock();
311 lock.unlock();
319 lock.lock();
322 lock.unlock();
444 // 1-0 state lock state (0, 1 or 2)
577 * the lock state field.
599 // An atomic_exchange is used to compete with other threads for the lock
[all...]
H A Dpthread_create.cpp250 thread->startup_handshake_lock.lock();
288 // Create a lock for the thread to wait on once it starts so we can keep
295 thread->startup_handshake_lock.lock();
/bionic/libc/private/
H A Dbionic_lock.h59 void lock() { function in class:Lock
81 LockGuard(Lock& lock) : lock_(lock) { argument
82 lock_.lock();
/bionic/benchmarks/
H A Dpthread_benchmark.cpp149 pthread_rwlock_t lock; local
150 pthread_rwlock_init(&lock, NULL);
153 pthread_rwlock_rdlock(&lock);
154 pthread_rwlock_unlock(&lock);
157 pthread_rwlock_destroy(&lock);
162 pthread_rwlock_t lock; local
163 pthread_rwlock_init(&lock, NULL);
166 pthread_rwlock_wrlock(&lock);
167 pthread_rwlock_unlock(&lock);
170 pthread_rwlock_destroy(&lock);
[all...]
H A Dutil.h32 g_map_lock.lock();
/bionic/tests/
H A Dpthread_test.cpp838 // Single read lock
842 // Multiple read lock
848 // Write lock
852 // Try writer lock
858 // Try reader lock
865 // Try writer lock after unlock
883 pthread_rwlock_t lock; member in struct:RwlockWakeupHelperArg
904 ASSERT_EQ(EBUSY, arg->trylock_function(&arg->lock));
905 ASSERT_EQ(0, arg->lock_function(&arg->lock));
907 ASSERT_EQ(0, pthread_rwlock_unlock(&arg->lock));
1119 pthread_rwlock_t lock; member in class:RwlockKindTestHelper
1792 pthread_mutex_t lock; member in struct:PthreadMutex
2503 pthread_spinlock_t lock; local
[all...]
/bionic/libc/kernel/uapi/drm/
H A Ddrm_sarea.h47 struct drm_hw_lock lock; member in struct:drm_sarea
H A Ddrm.h47 #define _DRM_LOCK_IS_HELD(lock) ((lock) & _DRM_LOCK_HELD)
48 #define _DRM_LOCK_IS_CONT(lock) ((lock) & _DRM_LOCK_CONT)
49 #define _DRM_LOCKING_CONTEXT(lock) ((lock) & ~(_DRM_LOCK_HELD | _DRM_LOCK_CONT))
71 __volatile__ unsigned int lock; member in struct:drm_hw_lock
H A Dvia_drm.h113 __u32 lock; member in struct:_drm_via_futex
/bionic/libc/versioner-dependencies/common/kernel_uapi/drm/
H A Ddrm_sarea.h47 struct drm_hw_lock lock; member in struct:drm_sarea
H A Ddrm.h47 #define _DRM_LOCK_IS_HELD(lock) ((lock) & _DRM_LOCK_HELD)
48 #define _DRM_LOCK_IS_CONT(lock) ((lock) & _DRM_LOCK_CONT)
49 #define _DRM_LOCKING_CONTEXT(lock) ((lock) & ~(_DRM_LOCK_HELD | _DRM_LOCK_CONT))
71 __volatile__ unsigned int lock; member in struct:drm_hw_lock
H A Dvia_drm.h113 __u32 lock; member in struct:_drm_via_futex
/bionic/tools/versioner/dependencies/common/kernel_uapi/drm/
H A Ddrm_sarea.h47 struct drm_hw_lock lock; member in struct:drm_sarea
H A Ddrm.h47 #define _DRM_LOCK_IS_HELD(lock) ((lock) & _DRM_LOCK_HELD)
48 #define _DRM_LOCK_IS_CONT(lock) ((lock) & _DRM_LOCK_CONT)
49 #define _DRM_LOCKING_CONTEXT(lock) ((lock) & ~(_DRM_LOCK_HELD | _DRM_LOCK_CONT))
71 __volatile__ unsigned int lock; member in struct:drm_hw_lock
H A Dvia_drm.h113 __u32 lock; member in struct:_drm_via_futex
/bionic/libc/system_properties/
H A Dcontext_node.cpp39 // This creates a risk of dead lock if any system_properties functions
46 lock_.lock();
/bionic/libc/kernel/uapi/linux/
H A Ddlm_device.h59 struct dlm_lock_params lock; member in union:dlm_write_request::__anon370
/bionic/libc/versioner-dependencies/common/kernel_uapi/linux/
H A Ddlm_device.h59 struct dlm_lock_params lock; member in union:dlm_write_request::__anon1517
/bionic/tools/versioner/dependencies/common/kernel_uapi/linux/
H A Ddlm_device.h59 struct dlm_lock_params lock; member in union:dlm_write_request::__anon2787
/bionic/libc/malloc_debug/
H A DMapData.cpp149 std::lock_guard<std::mutex> lock(m_);
H A DPointerData.cpp535 pointer_mutex_.lock();
536 frame_mutex_.lock();
537 free_pointer_mutex_.lock();
/bionic/libc/tzcode/
H A Dlocaltime.c22 static int lock(void) { return pthread_mutex_lock(&locallock); } function
25 static int lock(void) { return 0; } function
1308 if (lock() != 0)
1328 if (lock() != 0)
1338 if (lock() != 0)
1493 int err = lock();
2149 int err = lock();
2229 int err = lock();
2274 int err = lock();

Completed in 253 milliseconds

12