Home
last modified time | relevance | path

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

12

/hardware/google/graphics/common/libhwc2.1/libdrmresource/include/
Dworker.h33 void Lock() ACQUIRE(mutex_) { in Lock()
34 mutex_.lock(); in Lock()
36 void Unlock() RELEASE(mutex_) { in Unlock()
37 mutex_.unlock(); in Unlock()
69 std::mutex mutex_; variable
/hardware/google/camera/devices/EmulatedCamera/hwl/
DEmulatedTorchState.cpp28 std::lock_guard<std::mutex> lock(mutex_); in SetTorchMode()
49 std::lock_guard<std::mutex> lock(mutex_); in TurnOnTorchWithStrengthLevel()
70 std::lock_guard<std::mutex> lock(mutex_); in AcquireFlashHw()
76 std::lock_guard<std::mutex> lock(mutex_); in ReleaseFlashHw()
82 std::lock_guard<std::mutex> lock(mutex_); in GetTorchStrengthLevel()
87 std::lock_guard<std::mutex> lock(mutex_); in InitializeTorchDefaultLevel()
92 std::lock_guard<std::mutex> lock(mutex_); in InitializeSupportTorchStrengthLevel()
DEmulatedTorchState.h47 std::mutex mutex_;
/hardware/qcom/sm8150/display/sdm/include/utils/
Dlocker.h133 pthread_mutex_init(&mutex_, &attr); in Locker()
135 pthread_mutex_init(&mutex_, 0); in Locker()
143 pthread_mutex_destroy(&mutex_); in ~Locker()
148 void Lock() { pthread_mutex_lock(&mutex_); } in Lock()
149 int32_t TryLock() { return pthread_mutex_trylock(&mutex_); } in TryLock()
150 void Unlock() { pthread_mutex_unlock(&mutex_); } in Unlock()
153 void Wait() { pthread_cond_wait(&condition_, &mutex_); } in Wait()
162 return pthread_cond_timedwait(&condition_, &mutex_, &ts); in WaitFinite()
166 pthread_mutex_t mutex_;
/hardware/qcom/sm7250/display/sdm/include/utils/
Dlocker.h133 pthread_mutex_init(&mutex_, &attr); in Locker()
135 pthread_mutex_init(&mutex_, 0); in Locker()
143 pthread_mutex_destroy(&mutex_); in ~Locker()
148 void Lock() { pthread_mutex_lock(&mutex_); } in Lock()
149 int32_t TryLock() { return pthread_mutex_trylock(&mutex_); } in TryLock()
150 void Unlock() { pthread_mutex_unlock(&mutex_); } in Unlock()
153 void Wait() { pthread_cond_wait(&condition_, &mutex_); } in Wait()
162 return pthread_cond_timedwait(&condition_, &mutex_, &ts); in WaitFinite()
166 pthread_mutex_t mutex_;
/hardware/qcom/display/msm8909/sdm/include/utils/
Dlocker.h128 pthread_mutex_init(&mutex_, 0); in Locker()
133 pthread_mutex_destroy(&mutex_); in ~Locker()
137 void Lock() { pthread_mutex_lock(&mutex_); } in Lock()
138 void Unlock() { pthread_mutex_unlock(&mutex_); } in Unlock()
141 void Wait() { pthread_cond_wait(&condition_, &mutex_); } in Wait()
150 return pthread_cond_timedwait(&condition_, &mutex_, &ts); in WaitFinite()
154 pthread_mutex_t mutex_;
/hardware/qcom/display/msm8909w_3100/sdm/include/utils/
Dlocker.h128 pthread_mutex_init(&mutex_, 0); in Locker()
133 pthread_mutex_destroy(&mutex_); in ~Locker()
137 void Lock() { pthread_mutex_lock(&mutex_); } in Lock()
138 void Unlock() { pthread_mutex_unlock(&mutex_); } in Unlock()
141 void Wait() { pthread_cond_wait(&condition_, &mutex_); } in Wait()
150 return pthread_cond_timedwait(&condition_, &mutex_, &ts); in WaitFinite()
154 pthread_mutex_t mutex_;
/hardware/qcom/display/msm8996/sdm/include/utils/
Dlocker.h128 pthread_mutex_init(&mutex_, 0); in Locker()
133 pthread_mutex_destroy(&mutex_); in ~Locker()
137 void Lock() { pthread_mutex_lock(&mutex_); } in Lock()
138 void Unlock() { pthread_mutex_unlock(&mutex_); } in Unlock()
141 void Wait() { pthread_cond_wait(&condition_, &mutex_); } in Wait()
150 return pthread_cond_timedwait(&condition_, &mutex_, &ts); in WaitFinite()
154 pthread_mutex_t mutex_;
/hardware/qcom/display/msm8998/sdm/include/utils/
Dlocker.h128 pthread_mutex_init(&mutex_, 0); in Locker()
133 pthread_mutex_destroy(&mutex_); in ~Locker()
137 void Lock() { pthread_mutex_lock(&mutex_); } in Lock()
138 void Unlock() { pthread_mutex_unlock(&mutex_); } in Unlock()
141 void Wait() { pthread_cond_wait(&condition_, &mutex_); } in Wait()
150 return pthread_cond_timedwait(&condition_, &mutex_, &ts); in WaitFinite()
154 pthread_mutex_t mutex_;
/hardware/interfaces/bluetooth/audio/utils/aidl_session/
DBluetoothAudioSession.cpp61 std::lock_guard<std::recursive_mutex> guard(mutex_); in OnSessionStarted()
84 std::lock_guard<std::recursive_mutex> guard(mutex_); in OnSessionEnded()
102 std::lock_guard<std::recursive_mutex> guard(mutex_); in GetAudioConfig()
124 std::lock_guard<std::recursive_mutex> guard(mutex_); in ReportAudioConfigChanged()
181 std::lock_guard<std::recursive_mutex> guard(mutex_); in IsSessionReady()
205 std::lock_guard<std::recursive_mutex> guard(mutex_); in RegisterStatusCback()
229 std::lock_guard<std::recursive_mutex> guard(mutex_); in UnregisterStatusCback()
244 std::lock_guard<std::recursive_mutex> guard(mutex_); in StartStream()
260 std::lock_guard<std::recursive_mutex> guard(mutex_); in SuspendStream()
276 std::lock_guard<std::recursive_mutex> guard(mutex_); in StopStream()
[all …]
DBluetoothAudioSession.h206 std::recursive_mutex mutex_;
240 static std::mutex mutex_;
/hardware/google/graphics/common/libhwc2.1/libdrmresource/utils/
Dworker.cpp32 std::lock_guard<std::mutex> lk(mutex_); in InitWorker()
45 std::unique_lock<std::mutex> lk(mutex_); in Exit()
60 std::unique_lock<std::mutex> lk(mutex_, std::adopt_lock); in WaitForSignalOrExitLocked()
89 std::unique_lock<std::mutex> lk(mutex_, std::defer_lock); in InternalRoutine()
/hardware/interfaces/bluetooth/audio/utils/session/
DBluetoothAudioSession.cpp71 std::lock_guard<std::recursive_mutex> guard(mutex_); in OnSessionStarted()
98 std::lock_guard<std::recursive_mutex> guard(mutex_); in OnSessionEnded()
134 std::lock_guard<std::recursive_mutex> guard(mutex_); in ReportControlStatus()
157 std::lock_guard<std::recursive_mutex> guard(mutex_); in IsSessionReady()
211 std::lock_guard<std::recursive_mutex> guard(mutex_); in RegisterStatusCback()
241 std::lock_guard<std::recursive_mutex> guard(mutex_); in UnregisterStatusCback()
255 std::lock_guard<std::recursive_mutex> guard(mutex_); in GetAudioConfig()
270 std::lock_guard<std::recursive_mutex> guard(mutex_); in StartStream()
288 std::lock_guard<std::recursive_mutex> guard(mutex_); in SuspendStream()
306 std::lock_guard<std::recursive_mutex> guard(mutex_); in StopStream()
[all …]
DBluetoothAudioSession_2_1.cpp94 std::lock_guard<std::recursive_mutex> guard(audio_session->mutex_); in GetAudioConfig()
181 std::lock_guard<std::recursive_mutex> guard(audio_session->mutex_); in OnSessionStarted()
214 std::lock_guard<std::mutex> guard(instance_ptr->mutex_); in GetSessionInstance()
DBluetoothAudioSession.h87 std::recursive_mutex mutex_;
184 std::mutex mutex_; variable
/hardware/interfaces/health/storage/test_common/include/health-storage-test/
Dcommon.h42 std::unique_lock<std::mutex> lock(mutex_); in OnFinish()
47 std::unique_lock<std::mutex> lock(mutex_); in Wait()
65 std::mutex mutex_; variable
/hardware/interfaces/tv/input/aidl/vts/functional/
DVtsHalTvInputTargetTest.cpp32 unique_lock<mutex> lock(parent_->mutex_); in notify()
158 unique_lock<mutex> lock(mutex_); in TEST_P()
173 unique_lock<mutex> lock(mutex_); in TEST_P()
205 unique_lock<mutex> lock(mutex_); in TEST_P()
236 unique_lock<mutex> lock(mutex_); in TEST_P()
273 unique_lock<mutex> lock(mutex_); in TEST_P()
311 unique_lock<mutex> lock(mutex_); in TEST_P()
332 unique_lock<mutex> lock(mutex_); in TEST_P()
350 unique_lock<mutex> lock(mutex_); in TEST_P()
DVtsHalTvInputTargetTest.h97 mutex mutex_; variable
/hardware/interfaces/tv/input/1.0/vts/functional/
DVtsHalTvInputV1_0TargetTest.cpp147 std::unique_lock<std::mutex> lock(parent_.mutex_); in notify()
186 std::mutex mutex_; member in TvInputHidlTest
195 std::unique_lock<std::mutex> lock(mutex_); in TEST_P()
209 std::unique_lock<std::mutex> lock(mutex_); in TEST_P()
236 std::unique_lock<std::mutex> lock(mutex_); in TEST_P()
264 std::unique_lock<std::mutex> lock(mutex_); in TEST_P()
299 std::unique_lock<std::mutex> lock(mutex_); in TEST_P()
328 std::unique_lock<std::mutex> lock(mutex_); in TEST_P()
/hardware/interfaces/gatekeeper/aidl/software/
DSharedSecret.cpp39 std::lock_guard lock(mutex_); in getSharedSecretParameters()
56 std::lock_guard lock(mutex_); in computeSharedSecret()
127 std::lock_guard lock(mutex_); in HmacKey()
DSharedSecret.h37 mutable std::mutex mutex_;
/hardware/interfaces/health/storage/1.0/vts/functional/
DVtsHalHealthStorageV1_0TargetTest.cpp43 std::unique_lock<std::mutex> lock(mutex_); in onFinish()
55 std::unique_lock<std::mutex> lock(mutex_); in waitForResult()
/hardware/interfaces/health/storage/aidl/vts/functional/
DVtsHalHealthStorageTargetTest.cpp46 std::unique_lock<std::mutex> lock(mutex_); in onFinish()
58 std::unique_lock<std::mutex> lock(mutex_); in WaitForResult()
/hardware/interfaces/health/2.1/vts/functional/
DVtsHalHealthV2_1TargetTest.cpp87 std::lock_guard<std::mutex> lock(mutex_); in healthInfoChangedInternal()
94 std::unique_lock<std::mutex> lock(mutex_); in waitInvoke()
101 std::mutex mutex_; member in android::hardware::health::V2_1::CallbackBase
/hardware/google/graphics/common/libhwc2.1/libdrmresource/drm/
Ddrmeventlistener.cpp200 std::scoped_lock lock(mutex_); in RegisterSysfsHandler()
218 std::scoped_lock lock(mutex_); in UnRegisterSysfsHandler()
404 std::scoped_lock lock(mutex_); in SysfsEventHandler()

12