Searched defs:lock (Results 1 - 25 of 36) sorted by relevance

12

/system/chre/util/tests/
H A Dconditional_lock_guard_test.cc27 void lock() { function in class:MockMutex
48 ConditionalLockGuard<MockMutex> lock(mutex, true);
60 ConditionalLockGuard<MockMutex> lock(mutex, false);
H A Dlock_guard_test.cc27 void lock() { function in class:MockMutex
48 LockGuard<MockMutex> lock(mutex);
/system/chre/platform/linux/include/chre/target_platform/
H A Dmutex_base_impl.h28 inline void Mutex::lock() { function in class:chre::Mutex
29 mMutex.lock();
/system/chre/platform/slpi/include/chre/target_platform/
H A Dmutex_base_impl.h32 inline void Mutex::lock() { function in class:chre::Mutex
/system/core/include/cutils/
H A Dthreads.h45 pthread_mutex_t lock; member in struct:__anon1569
58 CRITICAL_SECTION lock; member in struct:__anon1570
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:__anon1571
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/core/libcutils/include/cutils/
H A Dthreads.h45 pthread_mutex_t lock; member in struct:__anon1662
58 CRITICAL_SECTION lock; member in struct:__anon1663
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:__anon1664
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/core/libcutils/include_vndk/cutils/
H A Dthreads.h45 pthread_mutex_t lock; member in struct:__anon1669
58 CRITICAL_SECTION lock; member in struct:__anon1670
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:__anon1671
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/libhidl/base/
H A DTaskRunner.cpp47 std::unique_lock<std::mutex> lock = mQueue->lock(); local
H A DSynchronizedQueue.h48 std::unique_lock<std::mutex> lock() { function in struct:android::hardware::details::SynchronizedQueue
73 std::unique_lock<std::mutex> lock(mMutex);
75 mCondition.wait(lock, [this]{
89 std::unique_lock<std::mutex> lock(mMutex);
104 std::unique_lock<std::mutex> lock(mMutex);
/system/libhidl/transport/include/hidl/
H A DConcurrentMap.h67 std::unique_lock<std::mutex> lock() { return std::unique_lock<std::mutex>(mMutex); } function in class:android::hardware::ConcurrentMap
/system/core/adb/daemon/
H A Dusb.h39 std::mutex lock; member in struct:usb_handle
/system/extras/tests/tcp_nuke_addr/
H A Dtcp_nuke_addr_test.cpp70 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);
143 std::thread(connectLoop, sin, listensock, &lock, &attempts).detach();
91 connectLoop(sockaddr_in listenaddr, int listensock, android::RWLock *lock, std::atomic<unsigned int> *attempts) argument
/system/libhidl/libhidlcache/
H A DHidlCache.h33 // A RAII class to manage lock/unlock HidlCache.
37 mCache->lock(mKey);
45 // lock the IMemory refered by key and keep it alive even if there's no
47 virtual bool lock(const Key& key);
59 // This method shall be called with a lock held
63 // @note This method shall be called with a lock held
74 bool HidlCache<Key, Value, Compare>::lock(const Key& key) { function in class:android::hardware::HidlCache
76 Lock lock(mMutex);
91 Lock lock(mMutex);
99 Lock lock(mMute
[all...]
/system/netd/server/
H A DFirewallController.h44 * Methods in this class must be called when holding a write lock on |lock|, and may not call
45 * any other controller without explicitly managing that controller's lock. There are currently
81 android::RWLock lock; member in class:FirewallController
H A DTetherController.h129 android::RWLock lock; member in class:android::net::TetherController
H A DBandwidthController.h31 android::RWLock lock; member in class:BandwidthController
H A DCommandListener.cpp87 LockingFrameworkCommand(FrameworkCommand *wrappedCmd, android::RWLock& lock) : argument
90 mLock(lock) {}
93 android::RWLock::AutoWLock lock(mLock);
105 void CommandListener::registerLockingCmd(FrameworkCommand *cmd, android::RWLock& lock) { argument
106 registerCmd(new LockingFrameworkCommand(cmd, lock));
111 registerLockingCmd(new IpFwdCmd(), gCtls->tetherCtrl.lock);
112 registerLockingCmd(new TetherCmd(), gCtls->tetherCtrl.lock);
113 registerLockingCmd(new NatCmd(), gCtls->tetherCtrl.lock);
116 registerLockingCmd(new BandwidthControlCmd(), gCtls->bandwidthCtrl.lock);
119 registerLockingCmd(new FirewallCmd(), gCtls->firewallCtrl.lock);
[all...]
/system/core/include/utils/
H A DMutex.h92 * recursive, i.e. the same thread can't lock it multiple times.
106 // lock or unlock the mutex
107 status_t lock() ACQUIRE();
110 // lock if possible; returns 0 on success, error otherwise
132 inline explicit Autolock(Mutex& mutex) ACQUIRE(mutex) : mLock(mutex) { mLock.lock(); }
133 inline explicit Autolock(Mutex* mutex) ACQUIRE(mutex) : mLock(*mutex) { mLock.lock(); }
182 inline status_t Mutex::lock() { function in class:android::Mutex
/system/core/libcutils/
H A Dhashmap.cpp40 mutex_t lock; member in struct:Hashmap
73 mutex_init(&map->lock);
137 mutex_lock(&map->lock);
141 mutex_unlock(&map->lock);
155 mutex_destroy(&map->lock);
/system/core/libutils/include/utils/
H A DMutex.h92 * recursive, i.e. the same thread can't lock it multiple times.
106 // lock or unlock the mutex
107 status_t lock() ACQUIRE();
110 // lock if possible; returns 0 on success, error otherwise
132 inline explicit Autolock(Mutex& mutex) ACQUIRE(mutex) : mLock(mutex) { mLock.lock(); }
133 inline explicit Autolock(Mutex* mutex) ACQUIRE(mutex) : mLock(*mutex) { mLock.lock(); }
182 inline status_t Mutex::lock() { function in class:android::Mutex
/system/core/libsync/tests/
H A Dsync_test.cpp523 mutex lock; local
549 lock.lock();
551 lock.unlock();
/system/media/audio_utils/
H A Decho_reference.c63 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);
344 pthread_cond_timedwait(&er->cond, &er->lock, &ts);
480 pthread_mutex_unlock(&er->lock);
/system/bt/osi/src/
H A Dalarm.cc91 // It allows us to release the coarse-grained monitor lock while a
212 std::lock_guard<std::mutex> lock(alarms_mutex);
237 std::lock_guard<std::mutex> lock(alarms_mutex);
255 std::lock_guard<std::mutex> lock(alarms_mutex);
260 std::lock_guard<std::recursive_mutex> lock(*alarm->callback_mutex);
295 std::lock_guard<std::mutex> lock(alarms_mutex);
319 std::lock_guard<std::mutex> lock(alarms_mutex);
477 LOG_ERROR(LOG_TAG, "%s unable to acquire wake lock", __func__);
494 // If we've reached this code path, we're going to grab a wake lock and
559 std::unique_lock<std::mutex>& lock) {
558 alarm_ready_generic(alarm_t* alarm, std::unique_lock<std::mutex>& lock) argument
[all...]
/system/core/liblog/
H A Dfake_log_device.c90 * to have multiple callers at the same time. This lock is used
96 static void lock() { function
110 #define lock() ((void)0) macro
154 lock();
570 lock();
651 lock();
H A Dproperties.c32 static int lock() { function
124 global_change_detected = change_detected = not_locked = lock();
288 } else if (lock()) {
313 * Use a separate lock from is_loggable to keep contention down b/25563384.
316 pthread_mutex_t lock; member in struct:cache2_char
330 if (pthread_mutex_trylock(&self->lock)) {
348 pthread_mutex_unlock(&self->lock);
525 pthread_mutex_t lock; member in struct:cache2_property_size
540 if (pthread_mutex_trylock(&self->lock)) {
558 pthread_mutex_unlock(&self->lock);
[all...]

Completed in 2941 milliseconds

12