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

/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.cpp44 g_lock.lock();
76 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_create.cpp194 thread->startup_handshake_lock.lock();
233 // Create a lock for the thread to wait on once it starts so we can keep
240 thread->startup_handshake_lock.lock();
H A Dsystem_properties.cpp741 * This creates a risk of dead lock if any system_properties functions
749 lock_.lock();
/bionic/benchmarks/
H A Dpthread_benchmark.cpp99 pthread_rwlock_t lock; local
100 pthread_rwlock_init(&lock, NULL);
103 pthread_rwlock_rdlock(&lock);
104 pthread_rwlock_unlock(&lock);
107 pthread_rwlock_destroy(&lock);
112 pthread_rwlock_t lock; local
113 pthread_rwlock_init(&lock, NULL);
116 pthread_rwlock_wrlock(&lock);
117 pthread_rwlock_unlock(&lock);
120 pthread_rwlock_destroy(&lock);
[all...]
/bionic/libc/kernel/uapi/drm/
H A Ddrm_sarea.h51 struct drm_hw_lock lock; member in struct:drm_sarea
H A Ddrm.h50 #define _DRM_LOCK_IS_HELD(lock) ((lock) & _DRM_LOCK_HELD)
51 #define _DRM_LOCK_IS_CONT(lock) ((lock) & _DRM_LOCK_CONT)
52 #define _DRM_LOCKING_CONTEXT(lock) ((lock) & ~(_DRM_LOCK_HELD | _DRM_LOCK_CONT))
80 __volatile__ unsigned int lock; member in struct:drm_hw_lock
H A Dvia_drm.h135 __u32 lock; member in struct:_drm_via_futex
/bionic/tests/
H A Dpthread_test.cpp675 // Single read lock
679 // Multiple read lock
685 // Write lock
689 // Try writer lock
695 // Try reader lock
702 // Try writer lock after unlock
720 pthread_rwlock_t lock; member in struct:RwlockWakeupHelperArg
740 ASSERT_EQ(EBUSY, arg->trylock_function(&arg->lock));
741 ASSERT_EQ(0, arg->lock_function(&arg->lock));
743 ASSERT_EQ(0, pthread_rwlock_unlock(&arg->lock));
897 pthread_rwlock_t lock; member in class:RwlockKindTestHelper
1511 pthread_mutex_t lock; member in struct:PthreadMutex
1951 pthread_spinlock_t lock; local
[all...]
/bionic/libc/private/
H A Dbionic_lock.h59 void lock() { function in class:Lock
/bionic/libc/kernel/uapi/linux/
H A Ddlm_device.h69 struct dlm_lock_params lock; member in union:dlm_write_request::__anon295
H A Daudit.h386 __u32 lock; member in struct:audit_features
H A Dcdrom.h796 __u8 lock : 1; member in struct:rm_feature_desc
799 __u8 lock : 1; member in struct:rm_feature_desc
H A Dperf_event.h266 __u32 lock; member in struct:perf_event_mmap_page
/bionic/libc/malloc_debug/
H A DMapData.cpp149 std::lock_guard<std::mutex> lock(m_);
/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
1303 if (lock() != 0)
1357 if (lock() != 0)
1367 if (lock() != 0)
1522 int err = lock();
2168 int err = lock();
2244 int err = lock();
2289 int err = lock();

Completed in 602 milliseconds