Searched defs:lock (Results 1 - 12 of 12) sorted by path

/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/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...]
/bionic/libc/kernel/uapi/drm/
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 Ddrm_sarea.h51 struct drm_hw_lock lock; member in struct:drm_sarea
H A Dvia_drm.h135 __u32 lock; member in struct:_drm_via_futex
/bionic/libc/kernel/uapi/linux/
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 Ddlm_device.h69 struct dlm_lock_params lock; member in union:dlm_write_request::__anon295
H A Dperf_event.h266 __u32 lock; member in struct:perf_event_mmap_page
/bionic/libc/private/
H A Dbionic_lock.h59 void lock() { function in class: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
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();
/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...]

Completed in 3979 milliseconds