Home
last modified time | relevance | path

Searched refs:mutex (Results 1 – 25 of 297) sorted by relevance

12345678910>>...12

/system/netd/server/
DClatdController.h42 explicit ClatdController(NetworkController* controller) EXCLUDES(mutex) in ClatdController()
44 virtual ~ClatdController() EXCLUDES(mutex){}; in ~ClatdController()
47 void init(void) EXCLUDES(mutex);
50 std::string* v6Addr) EXCLUDES(mutex);
51 int stopClatd(const std::string& interface) EXCLUDES(mutex);
53 void dump(netdutils::DumpWriter& dw) EXCLUDES(mutex);
77 std::mutex mutex; variable
79 const NetworkController* mNetCtrl GUARDED_BY(mutex);
80 std::map<std::string, ClatdTracker> mClatdTrackers GUARDED_BY(mutex);
81 ClatdTracker* getClatdTracker(const std::string& interface) REQUIRES(mutex);
[all …]
/system/chre/util/tests/
Dconditional_lock_guard_test.cc44 MockMutex mutex; in TEST() local
45 ASSERT_EQ(mutex.getLockCount(), 0); in TEST()
48 ConditionalLockGuard<MockMutex> lock(mutex, true); in TEST()
49 EXPECT_EQ(mutex.getLockCount(), 1); in TEST()
52 EXPECT_EQ(mutex.getLockCount(), 0); in TEST()
56 MockMutex mutex; in TEST() local
57 ASSERT_EQ(mutex.getLockCount(), 0); in TEST()
60 ConditionalLockGuard<MockMutex> lock(mutex, false); in TEST()
61 EXPECT_EQ(mutex.getLockCount(), 0); in TEST()
64 EXPECT_EQ(mutex.getLockCount(), 0); in TEST()
Dlock_guard_test.cc44 MockMutex mutex; in TEST() local
45 EXPECT_EQ(mutex.getLockCount(), 0); in TEST()
48 LockGuard<MockMutex> lock(mutex); in TEST()
49 EXPECT_EQ(mutex.getLockCount(), 1); in TEST()
52 EXPECT_EQ(mutex.getLockCount(), 0); in TEST()
/system/chre/chpp/platform/linux/include/chpp/platform/
Dplatform_mutex.h30 static inline void chppMutexInit(struct ChppMutex *mutex) { in chppMutexInit() argument
31 pthread_mutex_init(&mutex->lock, NULL); in chppMutexInit()
34 static inline void chppMutexDeinit(struct ChppMutex *mutex) { in chppMutexDeinit() argument
35 pthread_mutex_destroy(&mutex->lock); in chppMutexDeinit()
38 static inline void chppMutexLock(struct ChppMutex *mutex) { in chppMutexLock() argument
39 pthread_mutex_lock(&mutex->lock); in chppMutexLock()
42 static inline void chppMutexUnlock(struct ChppMutex *mutex) { in chppMutexUnlock() argument
43 pthread_mutex_unlock(&mutex->lock); in chppMutexUnlock()
Dplatform_condition_variable.h45 struct ChppMutex *mutex) { in chppConditionVariableWait() argument
46 return pthread_cond_wait(&cv->cond, &mutex->lock) == 0; in chppConditionVariableWait()
50 struct ChppConditionVariable *cv, struct ChppMutex *mutex, in chppConditionVariableTimedWait() argument
59 return pthread_cond_timedwait(&cv->cond, &mutex->lock, &now) == 0; in chppConditionVariableTimedWait()
/system/chre/chpp/platform/linux/
Dnotifier.c35 chppMutexInit(&notifier->mutex); in chppPlatformNotifierInit()
41 chppMutexDeinit(&notifier->mutex); in chppPlatformNotifierDeinit()
45 chppMutexLock(&notifier->mutex); in chppPlatformNotifierGetSignal()
50 chppMutexUnlock(&notifier->mutex); in chppPlatformNotifierGetSignal()
55 chppMutexLock(&notifier->mutex); in chppPlatformNotifierWait()
58 pthread_cond_wait(&notifier->cond, &notifier->mutex.lock); in chppPlatformNotifierWait()
63 chppMutexUnlock(&notifier->mutex); in chppPlatformNotifierWait()
77 chppMutexLock(&notifier->mutex); in chppPlatformNotifierTimedWait()
86 pthread_cond_timedwait(&notifier->cond, &notifier->mutex.lock, &absTime); in chppPlatformNotifierTimedWait()
92 chppMutexUnlock(&notifier->mutex); in chppPlatformNotifierTimedWait()
[all …]
Dlink.c49 chppMutexLock(&params->mutex); in linkSendThread()
71 chppMutexUnlock(&params->mutex); in linkSendThread()
80 chppMutexInit(&params->mutex); in chppPlatformLinkInit()
94 chppMutexDeinit(&params->mutex); in chppPlatformLinkDeinit()
100 chppMutexLock(&params->mutex); in chppPlatformLinkSend()
108 chppMutexUnlock(&params->mutex); in chppPlatformLinkSend()
/system/bt/osi/src/
Dfixed_queue.cc35 std::mutex* mutex; member
49 ret->mutex = new std::mutex; in fixed_queue_new()
81 delete queue->mutex; in fixed_queue_free()
99 std::lock_guard<std::mutex> lock(*queue->mutex); in fixed_queue_is_empty()
106 std::lock_guard<std::mutex> lock(*queue->mutex); in fixed_queue_length()
123 std::lock_guard<std::mutex> lock(*queue->mutex); in fixed_queue_enqueue()
137 std::lock_guard<std::mutex> lock(*queue->mutex); in fixed_queue_dequeue()
154 std::lock_guard<std::mutex> lock(*queue->mutex); in fixed_queue_try_enqueue()
169 std::lock_guard<std::mutex> lock(*queue->mutex); in fixed_queue_try_dequeue()
182 std::lock_guard<std::mutex> lock(*queue->mutex); in fixed_queue_try_peek_first()
[all …]
Dreactor.cc45 std::mutex* list_mutex;
56 std::mutex* mutex; // protects the lifetime of this object and all variables. member
88 ret->list_mutex = new std::mutex; in reactor_new()
151 object->mutex = new std::mutex; in reactor_register()
162 delete object->mutex; in reactor_register()
188 std::lock_guard<std::mutex> lock(*object->mutex); in reactor_change_registration()
211 std::unique_lock<std::mutex> lock(*reactor->list_mutex); in reactor_unregister()
223 obj->mutex->lock(); in reactor_unregister()
224 obj->mutex->unlock(); in reactor_unregister()
225 delete obj->mutex; in reactor_unregister()
[all …]
/system/bt/service/common/bluetooth/util/
Datomic_string.cc24 std::mutex* mutex = const_cast<std::mutex*>(&lock_); in Get() local
25 std::lock_guard<std::mutex> lock(*mutex); in Get()
30 std::lock_guard<std::mutex> lock(lock_); in Set()
/system/bt/gd/os/android/
Dparameter_provider.cc26 std::mutex parameter_mutex;
35 std::lock_guard<std::mutex> lock(parameter_mutex); in ConfigFilePath()
44 std::lock_guard<std::mutex> lock(parameter_mutex); in OverrideConfigFilePath()
50 std::lock_guard<std::mutex> lock(parameter_mutex); in SnoopLogFilePath()
59 std::lock_guard<std::mutex> lock(parameter_mutex); in OverrideSnoopLogFilePath()
66 std::lock_guard<std::mutex> lock(parameter_mutex); in SnoozLogFilePath()
75 std::lock_guard<std::mutex> lock(parameter_mutex); in OverrideSnoozLogFilePath()
/system/bt/stack/a2dp/
Da2dp_vendor_ldac_decoder.cc96 pthread_mutex_t mutex; member
128 pthread_mutex_init(&(a2dp_ldac_decoder_cb.mutex), NULL); in A2DP_VendorLoadDecoderLdac()
166 pthread_mutex_destroy(&(a2dp_ldac_decoder_cb.mutex)); in A2DP_VendorUnloadDecoderLdac()
183 pthread_mutex_lock(&(a2dp_ldac_decoder_cb.mutex)); in a2dp_vendor_ldac_decoder_init()
192 pthread_mutex_unlock(&(a2dp_ldac_decoder_cb.mutex)); in a2dp_vendor_ldac_decoder_init()
197 pthread_mutex_lock(&(a2dp_ldac_decoder_cb.mutex)); in a2dp_vendor_ldac_decoder_cleanup()
201 pthread_mutex_unlock(&(a2dp_ldac_decoder_cb.mutex)); in a2dp_vendor_ldac_decoder_cleanup()
209 pthread_mutex_lock(&(a2dp_ldac_decoder_cb.mutex)); in a2dp_vendor_ldac_decoder_decode_packet()
215 pthread_mutex_unlock(&(a2dp_ldac_decoder_cb.mutex)); in a2dp_vendor_ldac_decoder_decode_packet()
233 pthread_mutex_unlock(&(a2dp_ldac_decoder_cb.mutex)); in a2dp_vendor_ldac_decoder_decode_packet()
[all …]
/system/bt/gd/os/linux/
Dparameter_provider.cc31 std::mutex parameter_mutex;
40 std::lock_guard<std::mutex> lock(parameter_mutex); in ConfigFilePath()
49 std::lock_guard<std::mutex> lock(parameter_mutex); in OverrideConfigFilePath()
55 std::lock_guard<std::mutex> lock(parameter_mutex); in SnoopLogFilePath()
65 std::lock_guard<std::mutex> lock(parameter_mutex); in OverrideSnoopLogFilePath()
71 std::lock_guard<std::mutex> lock(parameter_mutex); in SnoozLogFilePath()
Dsystem_properties.cc27 std::mutex properties_mutex;
32 std::lock_guard<std::mutex> lock(properties_mutex); in GetSystemProperty()
41 std::lock_guard<std::mutex> lock(properties_mutex); in SetSystemProperty()
47 std::lock_guard<std::mutex> lock(properties_mutex); in ClearSystemPropertiesForHost()
/system/chre/chpp/include/chpp/
Dmutex.h42 static void chppMutexInit(struct ChppMutex *mutex);
49 static void chppMutexDeinit(struct ChppMutex *mutex);
56 static void chppMutexLock(struct ChppMutex *mutex);
63 static void chppMutexUnlock(struct ChppMutex *mutex);
/system/bt/gd/os/host/
Dparameter_provider.cc31 std::mutex parameter_mutex;
40 std::lock_guard<std::mutex> lock(parameter_mutex); in ConfigFilePath()
54 std::lock_guard<std::mutex> lock(parameter_mutex); in OverrideConfigFilePath()
60 std::lock_guard<std::mutex> lock(parameter_mutex); in SnoopLogFilePath()
74 std::lock_guard<std::mutex> lock(parameter_mutex); in OverrideSnoopLogFilePath()
81 std::lock_guard<std::mutex> lock(parameter_mutex); in SnoozLogFilePath()
95 std::lock_guard<std::mutex> lock(parameter_mutex); in OverrideSnoozLogFilePath()
Dsystem_properties.cc27 std::mutex properties_mutex;
32 std::lock_guard<std::mutex> lock(properties_mutex); in GetSystemProperty()
41 std::lock_guard<std::mutex> lock(properties_mutex); in SetSystemProperty()
47 std::lock_guard<std::mutex> lock(properties_mutex); in ClearSystemPropertiesForHost()
/system/bt/gd/common/
Dblocking_queue.h31 std::unique_lock<std::mutex> lock(mutex_); in push()
39 std::unique_lock<std::mutex> lock(mutex_); in take()
50 std::unique_lock<std::mutex> lock(mutex_); in wait_to_take()
60 std::unique_lock<std::mutex> lock(mutex_); in empty()
65 std::unique_lock<std::mutex> lock(mutex_); in clear()
72 mutable std::mutex mutex_;
/system/bt/service/
Da2dp_sink.cc44 std::lock_guard<std::mutex> lock(delegate_mutex_); in SetDelegate()
49 std::lock_guard<std::mutex> lock(mutex_); in Enable()
54 std::lock_guard<std::mutex> lock(mutex_); in Disable()
59 std::lock_guard<std::mutex> lock(mutex_); in Connect()
78 std::lock_guard<std::mutex> lock(mutex_); in Disconnect()
97 std::lock_guard<std::mutex> lock(mutex_); in SetAudioFocusState()
104 std::lock_guard<std::mutex> lock(mutex_); in SetAudioTrackGain()
114 std::lock_guard<std::mutex> lock(delegate_mutex_); in ConnectionStateCallback()
124 std::lock_guard<std::mutex> lock(delegate_mutex_); in AudioStateCallback()
135 std::lock_guard<std::mutex> lock(delegate_mutex_); in AudioConfigCallback()
/system/security/keystore2/src/km_compat/
Dkm_compat_service.cpp26 static std::mutex mutex; in addKeyMintDeviceService() local
27 std::lock_guard<std::mutex> lock(mutex); in addKeyMintDeviceService()
/system/chre/platform/linux/include/chre/target_platform/
Dcondition_variable_impl.h32 inline void ConditionVariable::wait(Mutex &mutex) { in wait() argument
33 mConditionVariable.wait(mutex); in wait()
36 inline bool ConditionVariable::wait_for(Mutex &mutex, Nanoseconds timeout) { in wait_for() argument
38 mutex, std::chrono::nanoseconds(timeout.toRawNanoseconds())); in wait_for()
/system/libhidl/base/
DSynchronizedQueue.h48 std::unique_lock<std::mutex> lock() { in lock()
49 return std::unique_lock<std::mutex>(mMutex); in lock()
61 std::mutex mMutex;
73 std::unique_lock<std::mutex> lock(mMutex); in wait_pop()
89 std::unique_lock<std::mutex> lock(mMutex); in push()
104 std::unique_lock<std::mutex> lock(mMutex); in size()
/system/chre/platform/slpi/include/chre/target_platform/
Dcondition_variable_impl.h39 inline void ConditionVariable::wait(Mutex &mutex) { in wait() argument
40 qurt_cond_wait(&mConditionVariable, &mutex.mMutex); in wait()
45 inline bool ConditionVariable::wait_for(Mutex &mutex, Nanoseconds timeout) { in wait_for() argument
65 wait(mutex); in wait_for()
/system/core/libutils/include/utils/
DCondition.h69 status_t wait(Mutex& mutex);
71 status_t waitRelative(Mutex& mutex, nsecs_t reltime);
117 inline status_t Condition::wait(Mutex& mutex) { in wait() argument
118 return -pthread_cond_wait(&mCond, &mutex.mMutex); in wait()
120 inline status_t Condition::waitRelative(Mutex& mutex, nsecs_t reltime) { in waitRelative() argument
150 return -pthread_cond_timedwait(&mCond, &mutex.mMutex, &ts); in waitRelative()
/system/bt/common/
Dleaky_bonded_queue.h86 std::mutex lock_;
104 std::lock_guard<std::mutex> lock(lock_); in Enqueue()
114 std::lock_guard<std::mutex> lock(lock_); in EnqueueWithPop()
128 std::lock_guard<std::mutex> lock(lock_); in Dequeue()
136 std::lock_guard<std::mutex> lock(lock_); in Clear()
145 std::lock_guard<std::mutex> lock(lock_); in Length()
156 std::lock_guard<std::mutex> lock(lock_); in Empty()

12345678910>>...12