/system/core/adb/sysdeps/ |
H A D | mutex.h | 46 void lock() { function in class:std::recursive_mutex 72 void lock() { function in class:std::mutex 73 mutex_.lock(); 81 fatal("non-recursive mutex unlock resulted in unexpected lock count: %d", lock_count_);
|
/system/core/include/cutils/ |
H A D | threads.h | 45 pthread_mutex_t lock; member in struct:__anon1530 58 CRITICAL_SECTION lock; member in struct:__anon1531 87 static __inline__ void mutex_lock(mutex_t* lock) argument 89 pthread_mutex_lock(lock); 91 static __inline__ void mutex_unlock(mutex_t* lock) argument 93 pthread_mutex_unlock(lock); 95 static __inline__ int mutex_init(mutex_t* lock) argument 97 return pthread_mutex_init(lock, NULL); 99 static __inline__ void mutex_destroy(mutex_t* lock) argument 101 pthread_mutex_destroy(lock); 108 CRITICAL_SECTION lock[1]; member in struct:__anon1532 113 mutex_lock(mutex_t* lock) argument 125 mutex_unlock(mutex_t* lock) argument 129 mutex_init(mutex_t* lock) argument 135 mutex_destroy(mutex_t* lock) argument [all...] |
/system/bt/btif/src/ |
H A D | btif_uid.c | 38 pthread_mutex_t lock; member in struct:uid_set_t 44 pthread_mutex_init(&set->lock, NULL); 49 pthread_mutex_lock(&set->lock); 57 pthread_mutex_unlock(&set->lock); 58 pthread_mutex_destroy(&set->lock); 83 pthread_mutex_lock(&set->lock); 86 pthread_mutex_unlock(&set->lock); 94 pthread_mutex_lock(&set->lock); 97 pthread_mutex_unlock(&set->lock); 101 pthread_mutex_lock(&set->lock); [all...] |
H A D | btif_sock_sco.c | 85 // |lock| protects all of the static variables below and 87 static pthread_mutex_t lock; variable 99 pthread_mutex_init(&lock, NULL); 110 pthread_mutex_destroy(&lock); 117 pthread_mutex_lock(&lock); 125 pthread_mutex_unlock(&lock); 134 pthread_mutex_lock(&lock); 136 pthread_mutex_unlock(&lock); 141 // Must be called with |lock| held. 192 // Must be called with |lock| hel [all...] |
H A D | btif_config.c | 131 static pthread_mutex_t lock; // protects operations on |config|. variable 138 pthread_mutex_init(&lock, NULL); 139 pthread_mutex_lock(&lock); 202 pthread_mutex_unlock(&lock); 208 pthread_mutex_unlock(&lock); 209 pthread_mutex_destroy(&lock); 240 pthread_mutex_destroy(&lock); 261 pthread_mutex_lock(&lock); 263 pthread_mutex_unlock(&lock); 273 pthread_mutex_lock(&lock); [all...] |
/system/nativepower/daemon/ |
H A D | BnPowerManager.cc | 33 sp<IBinder> lock = data.readStrongBinder(); local 38 return acquireWakeLock(flags, lock, tag, package_name); 42 sp<IBinder> lock = data.readStrongBinder(); local 47 return acquireWakeLockWithUid(flags, lock, tag, package_name, uid); 51 sp<IBinder> lock = data.readStrongBinder(); local 53 return releaseWakeLock(lock, flags); 57 sp<IBinder> lock = data.readStrongBinder(); local 59 return updateWakeLockUids(lock, 0, nullptr);
|
H A D | power_manager.cc | 61 const sp<IBinder>& lock, 65 return AddWakeLockRequest(lock, tag, packageName, 72 const sp<IBinder>& lock, 77 return AddWakeLockRequest(lock, tag, packageName, static_cast<uid_t>(uid)) 82 status_t PowerManager::releaseWakeLock(const sp<IBinder>& lock, argument 85 return wake_lock_manager_->RemoveRequest(lock) ? OK : UNKNOWN_ERROR; 88 status_t PowerManager::updateWakeLockUids(const sp<IBinder>& lock, argument 92 NOTIMPLEMENTED() << "updateWakeLockUids: lock=" << lock.get() 165 bool PowerManager::AddWakeLockRequest(const sp<IBinder>& lock, argument 60 acquireWakeLock(int flags, const sp<IBinder>& lock, const String16& tag, const String16& packageName, bool isOneWay) argument 71 acquireWakeLockWithUid(int flags, const sp<IBinder>& lock, const String16& tag, const String16& packageName, int uid, bool isOneWay) argument [all...] |
H A D | power_manager_stub.cc | 75 const sp<IBinder>& lock, 79 CHECK(wake_lock_manager_->AddRequest(lock, String8(tag).string(), 86 const sp<IBinder>& lock, 91 CHECK(wake_lock_manager_->AddRequest(lock, String8(tag).string(), 97 status_t PowerManagerStub::releaseWakeLock(const sp<IBinder>& lock, argument 100 CHECK(wake_lock_manager_->RemoveRequest(lock)); 104 status_t PowerManagerStub::updateWakeLockUids(const sp<IBinder>& lock, argument 74 acquireWakeLock(int flags, const sp<IBinder>& lock, const String16& tag, const String16& packageName, bool isOneWay) argument 85 acquireWakeLockWithUid(int flags, const sp<IBinder>& lock, const String16& tag, const String16& packageName, int uid, bool isOneWay) argument
|
/system/core/include/utils/ |
H A D | Mutex.h | 45 * recursive, i.e. the same thread can't lock it multiple times. 59 // lock or unlock the mutex 60 status_t lock(); 63 // lock if possible; returns 0 on success, error otherwise 67 // lock the mutex, but don't wait longer than timeoutMilliseconds. 80 inline Autolock(Mutex& mutex) : mLock(mutex) { mLock.lock(); } 81 inline Autolock(Mutex* mutex) : mLock(*mutex) { mLock.lock(); } 126 inline status_t Mutex::lock() { function in class:android::Mutex
|
/system/extras/tests/tcp_nuke_addr/ |
H A D | tcp_nuke_addr_test.cpp | 70 void killSockets(sockaddr_in listenaddr, int intervalMs, android::RWLock *lock) { argument 80 lock->writeLock(); 84 lock->unlock(); 92 android::RWLock *lock, std::atomic<unsigned int> *attempts) { 100 lock->readLock(); 102 lock->unlock(); 137 android::RWLock lock; local 141 std::thread t0(killSockets, sin, KILL_INTERVAL_MS, &lock); 144 connectThreads[i] = new std::thread(connectLoop, sin, listensock, &lock, &attempts); 91 connectLoop(sockaddr_in listenaddr, int listensock, android::RWLock *lock, std::atomic<unsigned int> *attempts) argument
|
/system/bt/osi/src/ |
H A D | allocation_tracker.c | 63 static pthread_mutex_t lock; variable 71 pthread_mutex_init(&lock, NULL); 73 pthread_mutex_lock(&lock); 81 pthread_mutex_unlock(&lock); 89 pthread_mutex_lock(&lock); 92 pthread_mutex_unlock(&lock); 99 pthread_mutex_lock(&lock); 101 pthread_mutex_unlock(&lock); 108 pthread_mutex_lock(&lock); 113 pthread_mutex_unlock(&lock); [all...] |
H A D | fixed_queue.c | 34 pthread_mutex_t lock; member in struct:fixed_queue_t 47 pthread_mutex_init(&ret->lock, NULL); 82 pthread_mutex_destroy(&queue->lock); 90 pthread_mutex_lock(&queue->lock); 92 pthread_mutex_unlock(&queue->lock); 101 pthread_mutex_lock(&queue->lock); 103 pthread_mutex_unlock(&queue->lock); 120 pthread_mutex_lock(&queue->lock); 122 pthread_mutex_unlock(&queue->lock); 132 pthread_mutex_lock(&queue->lock); [all...] |
H A D | reactor.c | 54 pthread_mutex_t lock; // protects the lifetime of this object and all variables. member in struct:reactor_object_t 147 pthread_mutex_init(&object->lock, NULL); 159 pthread_mutex_destroy(&object->lock); 185 pthread_mutex_lock(&object->lock); 188 pthread_mutex_unlock(&object->lock); 210 // Taking the object lock here makes sure a callback for |obj| isn't 215 // invalidation_list and find it in there. So by taking this lock, we 218 pthread_mutex_lock(&obj->lock); 219 pthread_mutex_unlock(&obj->lock); 220 pthread_mutex_destroy(&obj->lock); [all...] |
/system/core/logd/ |
H A D | LogBuffer.h | 132 // helper must be protected directly or implicitly by lock()/unlock() 136 void lock() { pthread_mutex_lock(&mLogElementsLock); } function in class:LogBuffer
|
H A D | LogTimes.h | 63 static void lock(void) { pthread_mutex_lock(×Lock); } function in class:LogTimeEntry 78 // These called after LogTimeEntry removed from list, lock implicitly held 97 void error(void) { lock(); error_Locked(); unlock(); }
|
/system/netd/server/ |
H A D | FirewallController.h | 43 * Methods in this class must be called when holding a write lock on |lock|, and may not call 44 * any other controller without explicitly managing that controller's lock. There are currently 82 android::RWLock lock; member in class:FirewallController
|
H A D | BandwidthController.h | 30 android::RWLock lock; member in class:BandwidthController
|
/system/core/libcutils/ |
H A D | hashmap.c | 39 mutex_t lock; member in struct:Hashmap 72 mutex_init(&map->lock); 136 mutex_lock(&map->lock); 140 mutex_unlock(&map->lock); 154 mutex_destroy(&map->lock);
|
/system/core/liblog/ |
H A D | log_is_loggable.c | 30 static int lock() function 121 global_change_detected = change_detected = not_locked = lock(); 265 } else if (lock()) { 290 * Use a separate lock from is_loggable to keep contention down b/25563384. 293 pthread_mutex_t lock; member in struct:cache2 308 if (pthread_mutex_trylock(&self->lock)) { 326 pthread_mutex_unlock(&self->lock);
|
H A D | fake_log_device.c | 90 * to have multiple callers at the same time. This lock is used 96 static void lock() function 112 #define lock() ((void)0) macro 160 lock(); 565 lock(); 634 lock();
|
/system/core/libsync/tests/ |
H A D | sync_test.cpp | 478 mutex lock; local 504 lock.lock(); 506 lock.unlock();
|
/system/media/audio_utils/ |
H A D | echo_reference.c | 63 pthread_mutex_t lock; // mutex protecting read/write concurrency member in struct:echo_reference 143 pthread_mutex_lock(&er->lock); 283 pthread_mutex_unlock(&er->lock); 304 pthread_mutex_lock(&er->lock); 347 pthread_cond_timedwait_relative_np(&er->cond, &er->lock, &ts); 349 pthread_cond_timedwait(&er->cond, &er->lock, &ts); 486 pthread_mutex_unlock(&er->lock);
|
/system/core/adb/ |
H A D | usb_linux_client.cpp | 60 adb_mutex_t lock; member in struct:usb_handle 251 adb_mutex_lock(&usb->lock); 253 adb_cond_wait(&usb->notify, &usb->lock); 256 adb_mutex_unlock(&usb->lock); 342 adb_mutex_lock(&h->lock); 345 adb_mutex_unlock(&h->lock); 362 adb_mutex_init(&h->lock, 0); 471 adb_mutex_lock(&usb->lock); 473 adb_cond_wait(&usb->notify, &usb->lock); 476 adb_mutex_unlock(&usb->lock); [all...] |
/system/security/keystore/ |
H A D | keystore.cpp | 206 void KeyStore::lock(uid_t userId) { function in class:KeyStore
|
/system/bt/service/ |
H A D | gatt_server_old.cpp | 122 std::mutex lock; member in struct:bluetooth::gatt::ServerInternals 153 std::lock_guard<std::mutex> lock(g_internal->lock); 164 std::lock_guard<std::mutex> lock(g_internal->lock); 214 std::lock_guard<std::mutex> lock(g_internal->lock); 273 std::lock_guard<std::mutex> lock(g_internal->lock); 304 std::lock_guard<std::mutex> lock(g_interna [all...] |