/system/core/include/cutils/ |
D | threads.h | 37 pthread_mutex_t lock; member 53 CRITICAL_SECTION lock; 85 static __inline__ void mutex_lock(mutex_t* lock) in mutex_lock() argument 87 pthread_mutex_lock(lock); in mutex_lock() 89 static __inline__ void mutex_unlock(mutex_t* lock) in mutex_unlock() argument 91 pthread_mutex_unlock(lock); in mutex_unlock() 93 static __inline__ int mutex_init(mutex_t* lock) in mutex_init() argument 95 return pthread_mutex_init(lock, NULL); in mutex_init() 97 static __inline__ void mutex_destroy(mutex_t* lock) in mutex_destroy() argument 99 pthread_mutex_destroy(lock); in mutex_destroy() [all …]
|
/system/extras/tests/bionic/libc/bionic/ |
D | test_mutex.c | 58 pthread_mutex_t lock = PTHREAD_MUTEX_INITIALIZER; in main() local 78 expect( pthread_mutex_init( &lock, &attr ), 0 ); in main() 79 expect( pthread_mutex_lock( &lock ), 0 ); in main() 80 expect( pthread_mutex_unlock( &lock ), 0 ); in main() 81 expect( pthread_mutex_destroy( &lock ), 0 ); in main() 85 expect( pthread_mutex_init( &lock, &attr ), 0 ); in main() 86 expect( pthread_mutex_lock( &lock ), 0 ); in main() 87 expect( pthread_mutex_lock( &lock ), EDEADLK ); in main() 88 expect( pthread_mutex_unlock( &lock ), 0 ); in main() 89 expect( pthread_mutex_trylock( &lock ), 0 ); in main() [all …]
|
D | test_cond.c | 36 static pthread_mutex_t lock = PTHREAD_RECURSIVE_MUTEX_INITIALIZER; variable 42 pthread_mutex_lock(&lock); in _thread1() 44 pthread_cond_wait(&wait, &lock); in _thread1() 46 pthread_mutex_unlock(&lock); in _thread1() 56 pthread_mutex_lock(&lock); in _thread2() 60 pthread_mutex_unlock(&lock); in _thread2()
|
/system/extras/tests/bionic/libc/common/ |
D | test_pthread_rwlock.c | 113 pthread_rwlock_t lock[1]; in do_test_rwlock_rd1() local 115 TZERO(pthread_rwlock_init(lock, attr)); in do_test_rwlock_rd1() 116 TZERO(pthread_rwlock_rdlock(lock)); in do_test_rwlock_rd1() 117 TZERO(pthread_rwlock_unlock(lock)); in do_test_rwlock_rd1() 118 TZERO(pthread_rwlock_destroy(lock)); in do_test_rwlock_rd1() 124 pthread_rwlock_t lock[1]; in do_test_rwlock_wr1() local 126 TZERO(pthread_rwlock_init(lock, attr)); in do_test_rwlock_wr1() 127 TZERO(pthread_rwlock_wrlock(lock)); in do_test_rwlock_wr1() 128 TZERO(pthread_rwlock_unlock(lock)); in do_test_rwlock_wr1() 129 TZERO(pthread_rwlock_destroy(lock)); in do_test_rwlock_wr1() [all …]
|
D | test_pthread_mutex.c | 114 pthread_mutex_t lock[1]; in do_test_mutex_1() local 116 TZERO(pthread_mutex_init(lock, attr)); in do_test_mutex_1() 117 TZERO(pthread_mutex_lock(lock)); in do_test_mutex_1() 118 TZERO(pthread_mutex_unlock(lock)); in do_test_mutex_1() 119 TZERO(pthread_mutex_destroy(lock)); in do_test_mutex_1() 173 pthread_mutex_t lock[1]; in do_test_mutex_2() local 175 TZERO(pthread_mutex_init(lock, attr)); in do_test_mutex_2() 176 TZERO(pthread_mutex_trylock(lock)); in do_test_mutex_2() 177 TZERO(pthread_mutex_unlock(lock)); in do_test_mutex_2() 178 TZERO(pthread_mutex_destroy(lock)); in do_test_mutex_2() [all …]
|
D | test_pthread_getcpuclockid.c | 36 static pthread_mutex_t lock = PTHREAD_MUTEX_INITIALIZER; variable 46 pthread_mutex_lock( &lock ); in thread_func() 51 pthread_mutex_unlock( &lock ); in thread_func() 62 pthread_mutex_unlock( &lock ); in thread_func()
|
/system/core/libcutils/ |
D | threads.c | 34 pthread_mutex_lock( &store->lock ); in thread_store_set() 37 pthread_mutex_unlock(&store->lock); in thread_store_set() 42 pthread_mutex_unlock( &store->lock ); in thread_store_set() 65 InitializeCriticalSection( &store->lock ); in thread_store_set() 71 EnterCriticalSection( &store->lock ); in thread_store_set() 75 LeaveCriticalSection( &store->lock ); in thread_store_set() 80 LeaveCriticalSection( &store->lock ); in thread_store_set()
|
D | hashmap.c | 39 mutex_t lock; member 72 mutex_init(&map->lock); in hashmapCreate() 133 mutex_lock(&map->lock); in hashmapLock() 137 mutex_unlock(&map->lock); in hashmapUnlock() 151 mutex_destroy(&map->lock); in hashmapFree()
|
/system/core/adb/ |
D | usb_linux_client.c | 43 adb_mutex_t lock; member 156 adb_mutex_lock(&usb->lock); in usb_adb_open_thread() 158 adb_cond_wait(&usb->notify, &usb->lock); in usb_adb_open_thread() 159 adb_mutex_unlock(&usb->lock); in usb_adb_open_thread() 219 adb_mutex_lock(&h->lock); in usb_adb_kick() 225 adb_mutex_unlock(&h->lock); in usb_adb_kick() 242 adb_mutex_init(&h->lock, 0); in usb_adb_init() 322 adb_mutex_lock(&usb->lock); in usb_ffs_open_thread() 324 adb_cond_wait(&usb->notify, &usb->lock); in usb_ffs_open_thread() 325 adb_mutex_unlock(&usb->lock); in usb_ffs_open_thread() [all …]
|
D | usb_linux.c | 71 adb_mutex_t lock; member 327 adb_mutex_lock(&h->lock); in usb_bulk_write() 347 res = pthread_cond_timedwait(&h->notify, &h->lock, &ts); in usb_bulk_write() 359 adb_mutex_unlock(&h->lock); in usb_bulk_write() 378 adb_mutex_lock(&h->lock); in usb_bulk_read() 395 adb_mutex_unlock(&h->lock); in usb_bulk_read() 398 adb_mutex_lock(&h->lock); in usb_bulk_read() 431 adb_mutex_unlock(&h->lock); in usb_bulk_read() 511 adb_mutex_lock(&h->lock); in usb_kick() 540 adb_mutex_unlock(&h->lock); in usb_kick() [all …]
|
D | sysdeps.h | 54 static __inline__ void adb_mutex_lock( adb_mutex_t* lock ) in adb_mutex_lock() argument 56 EnterCriticalSection( lock ); in adb_mutex_lock() 59 static __inline__ void adb_mutex_unlock( adb_mutex_t* lock ) in adb_mutex_unlock() argument 61 LeaveCriticalSection( lock ); in adb_mutex_unlock()
|
D | usb_libusb.c | 59 adb_mutex_t lock; member 233 adb_mutex_lock(&h->lock); in usb_kick() 235 adb_mutex_unlock(&h->lock); in usb_kick() 339 adb_mutex_init(&usb->lock, 0); in register_device()
|
D | sysdeps_win32.c | 871 CRITICAL_SECTION lock; member 890 InitializeCriticalSection( &buffer->lock ); in bip_buffer_init() 912 DeleteCriticalSection( &bip->lock ); in bip_buffer_done() 926 EnterCriticalSection( &bip->lock ); in bip_buffer_write() 930 LeaveCriticalSection( &bip->lock ); in bip_buffer_write() 946 EnterCriticalSection( &bip->lock ); in bip_buffer_write() 999 LeaveCriticalSection( &bip->lock ); in bip_buffer_write() 1014 EnterCriticalSection( &bip->lock ); in bip_buffer_read() 1018 LeaveCriticalSection( &bip->lock ); in bip_buffer_read() 1023 LeaveCriticalSection( &bip->lock ); in bip_buffer_read() [all …]
|
/system/core/sdcard/ |
D | sdcard.c | 119 pthread_mutex_t lock; member 425 pthread_mutex_init(&fuse->lock, NULL); in fuse_init() 479 pthread_mutex_lock(&fuse->lock); in fuse_reply_entry() 482 pthread_mutex_unlock(&fuse->lock); in fuse_reply_entry() 491 pthread_mutex_unlock(&fuse->lock); in fuse_reply_entry() 520 pthread_mutex_lock(&fuse->lock); in handle_lookup() 525 pthread_mutex_unlock(&fuse->lock); in handle_lookup() 539 pthread_mutex_lock(&fuse->lock); in handle_forget() 549 pthread_mutex_unlock(&fuse->lock); in handle_forget() 559 pthread_mutex_lock(&fuse->lock); in handle_getattr() [all …]
|
/system/core/liblog/ |
D | fake_log_device.c | 94 static void lock() in lock() function 104 #define lock() ((void)0) macro 152 lock(); in deleteFakeFd() 550 lock(); in logWritev() 619 lock(); in logOpen()
|
/system/media/audio_utils/ |
D | echo_reference.c | 61 pthread_mutex_t lock; // mutex protecting read/write concurrency member 139 pthread_mutex_lock(&er->lock); in echo_reference_write() 279 pthread_mutex_unlock(&er->lock); in echo_reference_write() 300 pthread_mutex_lock(&er->lock); in echo_reference_read() 333 pthread_cond_timedwait_relative_np(&er->cond, &er->lock, &ts); in echo_reference_read() 466 pthread_mutex_unlock(&er->lock); in echo_reference_read()
|
/system/security/keystore/ |
D | keystore.cpp | 587 void lock() { in lock() function in KeyStore 1047 static ResponseCode lock(KeyStore* keyStore, int, uid_t, Value*, Value*, Value*) { in lock() function 1048 keyStore->lock(); in lock() 1347 {lock, CommandCodes[LOCK], STATE_NO_ERROR, P_LOCK, {0, 0, 0}},
|
/system/core/logcat/ |
D | event.logtags | 100 # time: cpu time millis (not wall time), including lock acquisition
|