Home
last modified time | relevance | path

Searched refs:mutex_ (Results 1 – 25 of 70) sorted by relevance

123

/system/extras/memory_replay/
DThread.cpp30 pthread_mutex_lock(&mutex_); in WaitForReady()
32 pthread_cond_wait(&cond_, &mutex_); in WaitForReady()
34 pthread_mutex_unlock(&mutex_); in WaitForReady()
38 pthread_mutex_lock(&mutex_); in WaitForPending()
40 pthread_cond_wait(&cond_, &mutex_); in WaitForPending()
42 pthread_mutex_unlock(&mutex_); in WaitForPending()
46 pthread_mutex_lock(&mutex_); in SetPending()
48 pthread_mutex_unlock(&mutex_); in SetPending()
53 pthread_mutex_lock(&mutex_); in ClearPending()
55 pthread_mutex_unlock(&mutex_); in ClearPending()
/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_; variable
/system/bt/gd/storage/
Dstorage_module.cc80 std::lock_guard<std::recursive_mutex> lock(mutex_); in ~StorageModule()
99 std::lock_guard<std::recursive_mutex> lock(mutex_); in Modify()
104 std::lock_guard<std::recursive_mutex> lock(mutex_); in GetConfigCache()
109 std::lock_guard<std::recursive_mutex> lock(mutex_); in GetMemoryOnlyConfigCache()
114 std::lock_guard<std::recursive_mutex> lock(mutex_); in SaveDelayed()
124 std::lock_guard<std::recursive_mutex> lock(mutex_); in SaveImmediately()
144 std::lock_guard<std::recursive_mutex> lock(mutex_); in Start()
185 std::lock_guard<std::recursive_mutex> lock(mutex_); in Stop()
195 std::lock_guard<std::recursive_mutex> lock(mutex_); in GetDeviceByLegacyKey()
204 std::lock_guard<std::recursive_mutex> lock(mutex_); in GetDeviceByClassicMacAddress()
[all …]
Dconfig_cache.cc58 std::lock_guard<std::recursive_mutex> lock(mutex_); in SetPersistentConfigChangedCallback()
76 std::lock_guard<std::recursive_mutex> my_lock(mutex_); in operator =()
77 std::lock_guard<std::recursive_mutex> others_lock(other.mutex_); in operator =()
88 std::lock_guard<std::recursive_mutex> my_lock(mutex_); in operator ==()
89 std::lock_guard<std::recursive_mutex> others_lock(rhs.mutex_); in operator ==()
100 std::lock_guard<std::recursive_mutex> lock(mutex_); in Clear()
115 std::lock_guard<std::recursive_mutex> lock(mutex_); in HasSection()
121 std::lock_guard<std::recursive_mutex> lock(mutex_); in HasProperty()
138 std::lock_guard<std::recursive_mutex> lock(mutex_); in GetProperty()
164 std::lock_guard<std::recursive_mutex> lock(mutex_); in SetProperty()
[all …]
/system/bt/main/shim/
Dstack.cc64 std::lock_guard<std::recursive_mutex> lock(mutex_); in StartIdleMode()
93 std::lock_guard<std::recursive_mutex> lock(mutex_); in StartEverything()
194 std::lock_guard<std::recursive_mutex> lock(mutex_); in Stop()
227 std::lock_guard<std::recursive_mutex> lock(mutex_); in IsRunning()
232 std::lock_guard<std::recursive_mutex> lock(mutex_); in GetStackManager()
238 std::lock_guard<std::recursive_mutex> lock(mutex_); in GetStackManager()
244 std::lock_guard<std::recursive_mutex> lock(mutex_); in GetAcl()
251 std::lock_guard<std::recursive_mutex> lock(mutex_); in LinkPolicy()
258 std::lock_guard<std::recursive_mutex> lock(mutex_); in GetBtm()
264 std::lock_guard<std::recursive_mutex> lock(mutex_); in GetHandler()
[all …]
/system/unwinding/libunwindstack/
DThreadEntry.h49 mutex_.lock(); in Lock()
56 inline void Unlock() { mutex_.unlock(); } in Unlock()
66 std::mutex mutex_; variable
/system/bt/gd/os/linux_generic/
Dreactor.cc57 std::mutex mutex_; member in bluetooth::os::Reactor::Reactable
94 std::unique_lock<std::mutex> lock(mutex_); in Run()
129 std::unique_lock<std::mutex> lock(mutex_); in Run()
137 std::lock_guard<std::mutex> reactable_lock(reactable->mutex_); in Run()
148 std::unique_lock<std::mutex> reactable_lock(reactable->mutex_); in Run()
190 std::lock_guard<std::mutex> lock(mutex_); in Unregister()
196 std::lock_guard<std::mutex> reactable_lock(reactable->mutex_); in Unregister()
220 std::lock_guard<std::mutex> lock(mutex_); in WaitForUnregisteredReactable()
235 std::lock_guard<std::mutex> lock(mutex_); in WaitForIdle()
257 std::lock_guard<std::mutex> reactable_lock(reactable->mutex_); in ModifyRegistration()
Dhandler.cc47 std::lock_guard<std::mutex> lock(mutex_); in ~Handler()
58 std::lock_guard<std::mutex> lock(mutex_); in Post()
73 std::lock_guard<std::mutex> lock(mutex_); in Clear()
95 std::lock_guard<std::mutex> lock(mutex_); in handle_next_event()
Drepeating_alarm.cc55 std::lock_guard<std::mutex> lock(mutex_); in Schedule()
66 std::lock_guard<std::mutex> lock(mutex_); in Cancel()
73 std::unique_lock<std::mutex> lock(mutex_); in on_fire()
Dalarm.cc56 std::lock_guard<std::mutex> lock(mutex_); in Schedule()
66 std::lock_guard<std::mutex> lock(mutex_); in Cancel()
73 std::unique_lock<std::mutex> lock(mutex_); in on_fire()
Dqueue.tpp28 std::lock_guard<std::mutex> lock(mutex_);
44 std::lock_guard<std::mutex> lock(mutex_);
60 std::lock_guard<std::mutex> lock(mutex_);
74 std::lock_guard<std::mutex> lock(mutex_);
90 std::lock_guard<std::mutex> lock(mutex_);
110 std::lock_guard<std::mutex> lock(mutex_);
/system/unwinding/libbacktrace/
DThreadEntry.h37 pthread_mutex_lock(&mutex_); in Lock()
45 pthread_mutex_unlock(&mutex_); in Unlock()
59 pthread_mutex_t mutex_; variable
/system/bt/service/
Da2dp_sink.cc49 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()
Davrcp_target.cc118 LockGuard lock(mutex_); in Enable()
123 LockGuard lock(mutex_); in Disable()
131 LockGuard lock(mutex_); in GetPlayStatusResponse()
149 LockGuard lock(mutex_); in ListPlayerAppAttrResponse()
172 LockGuard lock(mutex_); in GetPlayerAppValueResponse()
183 LockGuard lock(mutex_); in GetPlayerAppAttrTextResponse()
195 LockGuard lock(mutex_); in GetPlayerAppValueTextResponse()
207 LockGuard lock(mutex_); in GetElementAttrResponse()
218 LockGuard lock(mutex_); in SetPlayerAppValueResponse()
230 LockGuard lock(mutex_); in RegisterNotificationResponse()
[all …]
Dgatt_server.cc51 lock_guard<mutex> lock(mutex_); in SetDelegate()
62 lock_guard<mutex> lock(mutex_); in AddService()
113 lock_guard<mutex> lock(mutex_); in SendResponse()
187 lock_guard<mutex> lock(mutex_); in SendNotification()
248 lock_guard<mutex> lock(mutex_); in ConnectionCallback()
298 lock_guard<mutex> lock(mutex_); in ServiceAddedCallback()
340 lock_guard<mutex> lock(mutex_); in RequestReadCharacteristicCallback()
373 lock_guard<mutex> lock(mutex_); in RequestReadDescriptorCallback()
408 lock_guard<mutex> lock(mutex_); in RequestWriteCharacteristicCallback()
447 lock_guard<mutex> lock(mutex_); in RequestWriteDescriptorCallback()
[all …]
Davrcp_control.cc53 std::lock_guard<std::mutex> lock(mutex_); in Enable()
58 std::lock_guard<std::mutex> lock(mutex_); in Disable()
73 std::lock_guard<std::mutex> lock(mutex_); in SendPassThroughCommand()
96 std::lock_guard<std::mutex> lock(mutex_); in SetAbsVolumeResponse()
120 std::lock_guard<std::mutex> lock(mutex_); in RegisterForAbsVolumeCallbackResponse()
/system/iorap/src/common/
Dasync_pool.h32 std::mutex mutex_; variable
48 std::unique_lock<std::mutex> lock(mutex_); in Join()
82 std::unique_lock<std::mutex> lock(mutex_); in LaunchAsync()
/system/chre/pal/tests/src/
Dwifi_pal_impl_test.cc121 chre::LockGuard<chre::Mutex> lock(mutex_); in scanMonitorStatusChangeCallback()
134 chre::LockGuard<chre::Mutex> lock(mutex_); in scanResponseCallback()
144 chre::LockGuard<chre::Mutex> lock(mutex_); in scanEventCallback()
174 waitSuccess = condVar_.wait_for(mutex_, timeoutNs); in waitForAsyncResponseAssertSuccess()
193 chre::LockGuard<chre::Mutex> lock(mutex_); in TEST_F()
211 waitSuccess = condVar_.wait_for(mutex_, kScanResultTimeoutNs); in TEST_F()
243 chre::LockGuard<chre::Mutex> lock(mutex_); in TEST_F()
Dgnss_pal_impl_test.cc189 chre::LockGuard<chre::Mutex> lock(mutex_); in locationStatusChangeCallback()
197 chre::LockGuard<chre::Mutex> lock(mutex_); in locationEventCallback()
214 chre::LockGuard<chre::Mutex> lock(mutex_); in measurementStatusChangeCallback()
222 chre::LockGuard<chre::Mutex> lock(mutex_); in measurementEventCallback()
235 waitSuccess = condVar_.wait_for(mutex_, timeoutNs); in waitForAsyncResponseAssertSuccess()
253 chre::LockGuard<chre::Mutex> lock(mutex_); in TEST_P()
264 waitSuccess = condVar_.wait_for(mutex_, kGnssEventTimeoutNs); in TEST_P()
293 chre::LockGuard<chre::Mutex> lock(mutex_); in TEST_P()
303 waitSuccess = condVar_.wait_for(mutex_, kGnssEventTimeoutNs); in TEST_P()
/system/bt/gd/os/
Dqueue.h88 std::mutex mutex_; variable
117 std::lock_guard<std::mutex> lock(mutex_); in Enqueue()
125 std::lock_guard<std::mutex> lock(mutex_); in Clear()
138 std::lock_guard<std::mutex> lock(mutex_); in NotifyOnEmpty()
145 std::lock_guard<std::mutex> lock(mutex_); in enqueue_callback()
157 mutable std::mutex mutex_; variable
/system/bt/audio_hal_interface/
Dhal_version_manager.h49 std::lock_guard<std::mutex> guard(instance_ptr->mutex_); in GetHalVersion()
55 std::lock_guard<std::mutex> guard(instance_ptr->mutex_); in GetProvidersFactory_2_1()
72 std::unique_lock<std::mutex> guard(instance_ptr->mutex_); in GetProvidersFactory_2_0()
130 std::mutex mutex_; variable
/system/bt/service/example/heart_rate/
Dheart_rate_server.cc112 std::lock_guard<std::mutex> lock(mutex_); in ~HeartRateServer()
124 std::lock_guard<std::mutex> lock(mutex_); in Run()
160 std::lock_guard<std::mutex> lock(mutex_); in SendHeartRateMeasurement()
228 std::lock_guard<std::mutex> lock(mutex_); in OnServerRegistered()
284 std::lock_guard<std::mutex> lock(mutex_); in OnServiceAdded()
316 std::lock_guard<std::mutex> lock(mutex_); in OnCharacteristicReadRequest()
339 std::lock_guard<std::mutex> lock(mutex_); in OnDescriptorReadRequest()
373 std::lock_guard<std::mutex> lock(mutex_); in OnCharacteristicWriteRequest()
416 std::lock_guard<std::mutex> lock(mutex_); in OnDescriptorWriteRequest()
480 std::lock_guard<std::mutex> lock(mutex_); in OnNotificationSent()
/system/bt/audio_bluetooth_hw/
Dstream_apis.h66 mutable std::mutex mutex_; member
74 std::mutex mutex_; member
94 mutable std::mutex mutex_; member
/system/iorap/src/binder/
Dpackage_version_map.cc33 void PackageVersionMap::UpdateAll() {std::lock_guard<std::mutex> lock(mutex_); in UpdateAll()
47 std::lock_guard<std::mutex> lock(mutex_); in Update()
91 std::lock_guard<std::mutex> lock(mutex_); in GetOrQueryPackageVersion()
/system/iorap/src/perfetto/
Dperfetto_consumer.cc161 std::mutex mutex_; // Guard above values. member
189 std::lock_guard<std::mutex> guard{mutex_}; in Create()
216 std::lock_guard<std::mutex> guard{mutex_}; in StartTracing()
243 std::lock_guard<std::mutex> guard{mutex_}; in ReadTrace()
269 std::lock_guard<std::mutex> guard{mutex_}; in TryDestroy()
302 std::lock_guard<std::mutex> guard{mutex_}; in GetOrInferHandleDescription()
325 std::lock_guard<std::mutex> guard{mutex_}; in OnTraceMessage()
358 std::lock_guard<std::mutex> guard{mutex_}; in OnTraceMessage()
518 bool is_it_locked = mutex_.try_lock(); in Dump()
547 mutex_.unlock(); in Dump()

123