Home
last modified time | relevance | path

Searched refs:lock (Results 1 – 20 of 20) sorted by relevance

/bionic/libc/bionic/
Dpthread_spinlock.cpp37 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 …]
Dbionic_systrace.cpp38 g_lock.lock(); in should_trace()
47 g_lock.lock(); in get_trace_marker_fd()
Dpthread_rwlock.cpp311 rwlock->pending_lock.lock(); in __pthread_rwlock_timedrdlock()
330 rwlock->pending_lock.lock(); in __pthread_rwlock_timedrdlock()
383 rwlock->pending_lock.lock(); in __pthread_rwlock_timedwrlock()
398 rwlock->pending_lock.lock(); in __pthread_rwlock_timedwrlock()
477 rwlock->pending_lock.lock(); in pthread_rwlock_unlock()
Dpthread_create.cpp222 thread->startup_handshake_lock.lock(); in __pthread_start()
265 thread->startup_handshake_lock.lock(); in pthread_create()
Dsystem_properties.cpp803 lock_.lock(); in open()
/bionic/benchmarks/
Dpthread_benchmark.cpp99 pthread_rwlock_t lock; in BM_pthread_rwlock_read() local
100 pthread_rwlock_init(&lock, NULL); in BM_pthread_rwlock_read()
103 pthread_rwlock_rdlock(&lock); in BM_pthread_rwlock_read()
104 pthread_rwlock_unlock(&lock); in BM_pthread_rwlock_read()
107 pthread_rwlock_destroy(&lock); in BM_pthread_rwlock_read()
112 pthread_rwlock_t lock; in BM_pthread_rwlock_write() local
113 pthread_rwlock_init(&lock, NULL); in BM_pthread_rwlock_write()
116 pthread_rwlock_wrlock(&lock); in BM_pthread_rwlock_write()
117 pthread_rwlock_unlock(&lock); in BM_pthread_rwlock_write()
120 pthread_rwlock_destroy(&lock); in BM_pthread_rwlock_write()
/bionic/tests/
Dpthread_test.cpp802 pthread_rwlock_t lock; member
822 ASSERT_EQ(EBUSY, arg->trylock_function(&arg->lock)); in pthread_rwlock_wakeup_helper()
823 ASSERT_EQ(0, arg->lock_function(&arg->lock)); in pthread_rwlock_wakeup_helper()
825 ASSERT_EQ(0, pthread_rwlock_unlock(&arg->lock)); in pthread_rwlock_wakeup_helper()
832 ASSERT_EQ(0, pthread_rwlock_init(&wakeup_arg.lock, NULL)); in test_pthread_rwlock_reader_wakeup_writer()
833 ASSERT_EQ(0, pthread_rwlock_rdlock(&wakeup_arg.lock)); in test_pthread_rwlock_reader_wakeup_writer()
846 ASSERT_EQ(0, pthread_rwlock_unlock(&wakeup_arg.lock)); in test_pthread_rwlock_reader_wakeup_writer()
850 ASSERT_EQ(0, pthread_rwlock_destroy(&wakeup_arg.lock)); in test_pthread_rwlock_reader_wakeup_writer()
861 test_pthread_rwlock_reader_wakeup_writer([&](pthread_rwlock_t* lock) { in TEST() argument
862 return pthread_rwlock_timedwrlock(lock, &ts); in TEST()
[all …]
/bionic/libc/kernel/uapi/drm/
Ddrm_sarea.h47 struct drm_hw_lock lock; member
Ddrm.h47 #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
Dvia_drm.h113 __u32 lock; member
/bionic/libc/private/
Dbionic_lock.h59 void lock() { in lock() function
/bionic/libc/kernel/uapi/linux/
Ddlm_device.h59 struct dlm_lock_params lock; member
Dcdrom.h641 __u8 lock : 1; member
643 __u8 lock : 1; member
Daudit.h319 __u32 lock; member
Dperf_event.h223 __u32 lock; member
/bionic/libc/malloc_debug/
DMapData.cpp149 std::lock_guard<std::mutex> lock(m_); in find() local
DRecordData.cpp129 std::lock_guard<std::mutex> lock(dump_lock_); in Dump() local
/bionic/libc/tzcode/
Dlocaltime.c22 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/
DDriver.cpp165 std::unique_lock<std::mutex> lock(cc1_init_mutex); in generateTargetCC1Flags() local
DDeclarationDatabase.cpp285 std::unique_lock<std::mutex> lock(this->mutex); in parseAST() local