Home
last modified time | relevance | path

Searched refs:mLock (Results 1 – 25 of 46) sorted by relevance

12

/device/generic/goldfish-opengl/android-emu/android/base/synchronization/
DAndroidLock.h56 ::AcquireSRWLockExclusive(&mLock); in lock()
58 ::pthread_mutex_lock(&mLock); in lock()
66 ret = ::TryAcquireSRWLockExclusive(&mLock); in tryLock()
68 ret = ::pthread_mutex_trylock(&mLock) == 0; in tryLock()
80 ::ReleaseSRWLockExclusive(&mLock);
82 ::pthread_mutex_unlock(&mLock);
93 SRWLOCK mLock = SRWLOCK_INIT; variable
95 pthread_mutex_t mLock = PTHREAD_MUTEX_INITIALIZER; variable
112 ~Lock() { ::pthread_mutex_destroy(&mLock); } in ~Lock()
124 void lockRead() { ::AcquireSRWLockShared(&mLock); } in lockRead()
[all …]
DAndroidMessageChannel.cpp24 AutoLock lock(mLock); in size()
29 android::base::guest::AutoLock lock(mLock); in stop()
37 AutoLock lock(mLock); in isStopped()
42 AutoLock lock(mLock); in waitForEmpty()
49 mLock.lock(); in beforeWrite()
51 mCanWrite.wait(&mLock); in beforeWrite()
63 mLock.lock(); in beforeTryWrite()
79 mCanRead.signalAndUnlock(&mLock); in afterWrite()
83 mLock.lock(); in beforeRead()
85 mCanRead.wait(&mLock); in beforeRead()
[all …]
DAndroidConditionVariable.h52 wait(&userLock->mLock); in wait()
82 this->wait(&lock->mLock, pred); in wait()
105 ::SleepConditionVariableSRW(&mCond, &userLock->mLock, INFINITE, 0); in wait()
113 &mCond, &userLock->mLock, timeout, 0) != 0; in timedWait()
143 pthread_cond_wait(&mCond, &userLock->mLock); in wait()
154 return pthread_cond_timedwait(&mCond, &userLock->mLock, &abstime) == 0; in timedWait()
/device/generic/goldfish-opengl/android-emu/android/base/threads/
DAndroidWorkPool.cpp46 android::base::guest::Lock& getLock() { return mLock; } in getLock()
83 AutoLock lock(mLock); in decrementBroadcast()
96 mCv.wait(&mLock); in doWait()
99 return mCv.timedWait(&mLock, getDeadline(timeout)); in doWait()
156 Lock mLock; member in android::base::guest::WaitGroup
214 AutoLock lock(mLock); in acquire()
227 AutoLock lock(mLock); in run()
251 AutoLock lock(mLock); in shouldCleanupWaitGroup()
272 AutoLock lock(mLock); in exit()
289 AutoLock lock(mLock); in threadFunc()
[all …]
DAndroidThread_pthread.cpp105 AutoLock locker(mLock); in tryWait()
144 AutoLock lock(self->mLock); in thread_main()
DAndroidThread.h120 Lock mLock; variable
/device/google/coral/powerstats/
DRailDataProvider.cpp205 std::lock_guard<std::mutex> _lock(mOdpm.mLock); in getRailInfo()
225 std::lock_guard<std::mutex> _lock(mOdpm.mLock); in getEnergyData()
256 std::lock_guard<std::mutex> _lock(mOdpm.mLock); in streamEnergyData()
275 mOdpm.mLock.lock(); in streamEnergyData()
279 mOdpm.mLock.unlock(); in streamEnergyData()
286 mOdpm.mLock.unlock(); in streamEnergyData()
290 mOdpm.mLock.lock(); in streamEnergyData()
292 mOdpm.mLock.unlock(); in streamEnergyData()
DRailDataProvider.h22 std::mutex mLock; member
/device/generic/goldfish-opengl/system/vulkan_enc/
DResourceTracker.cpp361 AutoLock lock(mLock); \
367 AutoLock lock(mLock); \
375 AutoLock lock(mLock); in GOLDFISH_VK_LIST_TRIVIAL_HANDLE_TYPES()
385 AutoLock lock(mLock); in unregister_VkDevice()
395 AutoLock lock(mLock); in unregister_VkCommandBuffer()
413 AutoLock lock(mLock); in unregister_VkQueue()
431 AutoLock lock(mLock); in unregister_VkDeviceMemory()
462 AutoLock lock(mLock); in unregister_VkImage()
473 AutoLock lock(mLock); in unregister_VkBuffer()
482 AutoLock lock(mLock); in unregister_VkSemaphore()
[all …]
/device/google/cuttlefish/host/frontend/gcastv2/https/
DRunLoop.cpp134 std::lock_guard<std::mutex> autoLock(mLock); in cancelToken()
157 std::lock_guard<std::mutex> autoLock(mLock); in postSocketRecv()
166 std::lock_guard<std::mutex> autoLock(mLock); in postSocketSend()
174 std::lock_guard<std::mutex> autoLock(mLock); in cancelSocket()
180 std::lock_guard<std::mutex> autoLock(mLock); in insert()
222 std::lock_guard<std::mutex> autoLock(mLock); in run()
344 std::lock_guard<std::mutex> autoLock(mLock); in run()
/device/google/contexthub/util/common/
Dring.cpp38 Mutex::Autolock autoLock(mLock); in write()
70 Mutex::Autolock autoLock(mLock); in read()
79 mNotEmptyCondition.wait(mLock); in read()
Dring.h36 Mutex mLock;
/device/google/bonito/usb/
DUsb.cpp190 : mLock(PTHREAD_MUTEX_INITIALIZER), in Usb()
255 pthread_mutex_lock(&mLock); in switchRole()
265 pthread_mutex_unlock(&mLock); in switchRole()
477 pthread_mutex_lock(&mLock); in queryPortStatus()
500 pthread_mutex_unlock(&mLock); in queryPortStatus()
534 pthread_mutex_lock(&payload->usb->mLock); in uevent_event()
564 pthread_mutex_unlock(&payload->usb->mLock); in uevent_event()
665 pthread_mutex_lock(&mLock); in setCallback()
680 pthread_mutex_unlock(&mLock); in setCallback()
689 pthread_mutex_unlock(&mLock); in setCallback()
[all …]
/device/google/wahoo/usb/
DUsb.cpp216 : mLock(PTHREAD_MUTEX_INITIALIZER), in Usb()
281 pthread_mutex_lock(&mLock); in switchRole()
291 pthread_mutex_unlock(&mLock); in switchRole()
503 pthread_mutex_lock(&mLock); in queryPortStatus()
526 pthread_mutex_unlock(&mLock); in queryPortStatus()
561 pthread_mutex_lock(&payload->usb->mLock); in uevent_event()
591 pthread_mutex_unlock(&payload->usb->mLock); in uevent_event()
700 pthread_mutex_lock(&mLock); in setCallback()
715 pthread_mutex_unlock(&mLock); in setCallback()
724 pthread_mutex_unlock(&mLock); in setCallback()
[all …]
/device/google/crosshatch/usb/
DUsb.cpp192 : mLock(PTHREAD_MUTEX_INITIALIZER), in Usb()
257 pthread_mutex_lock(&mLock); in switchRole()
267 pthread_mutex_unlock(&mLock); in switchRole()
479 pthread_mutex_lock(&mLock); in queryPortStatus()
502 pthread_mutex_unlock(&mLock); in queryPortStatus()
538 pthread_mutex_lock(&payload->usb->mLock); in uevent_event()
568 pthread_mutex_unlock(&payload->usb->mLock); in uevent_event()
669 pthread_mutex_lock(&mLock); in setCallback()
684 pthread_mutex_unlock(&mLock); in setCallback()
693 pthread_mutex_unlock(&mLock); in setCallback()
[all …]
/device/google/coral/usb/
DUsb.cpp278 : mLock(PTHREAD_MUTEX_INITIALIZER), in Usb()
339 pthread_mutex_lock(&mLock); in switchRole()
348 pthread_mutex_unlock(&mLock); in switchRole()
563 pthread_mutex_lock(&usb->mLock); in queryVersionHelper()
594 pthread_mutex_unlock(&usb->mLock); in queryVersionHelper()
745 pthread_mutex_lock(&mLock); in setCallback()
760 pthread_mutex_unlock(&mLock); in setCallback()
769 pthread_mutex_unlock(&mLock); in setCallback()
789 pthread_mutex_unlock(&mLock); in setCallback()
/device/generic/goldfish/camera/
DEmulatedQemuCamera3.cpp222 Mutex::Autolock l(mLock); in connectCamera()
266 Mutex::Autolock l(mLock); in closeCamera()
282 Mutex::Autolock l(mLock); in closeCamera()
309 Mutex::Autolock l(mLock); in configureStreams()
457 Mutex::Autolock l(mLock); in registerStreamBuffers()
464 Mutex::Autolock l(mLock); in constructDefaultRequestSettings()
728 Mutex::Autolock l(mLock); in processCaptureRequest()
1861 Mutex::Autolock l(mLock); in signalReadoutIdle()
1906 Mutex::Autolock l(mLock); in queueCaptureRequest()
1913 Mutex::Autolock l(mLock); in isIdle()
[all …]
DEmulatedFakeCamera3.h155 Mutex mLock; variable
231 Mutex mLock; variable
DEmulatedQemuCamera3.h150 Mutex mLock; variable
232 Mutex mLock; variable
/device/google/cuttlefish/guest/hals/camera/
DEmulatedFakeCamera3.h151 Mutex mLock; variable
225 Mutex mLock; variable
DEmulatedFakeCamera3.cpp132 Mutex::Autolock l(mLock); in connectCamera()
174 Mutex::Autolock l(mLock); in closeCamera()
190 Mutex::Autolock l(mLock); in closeCamera()
232 Mutex::Autolock l(mLock); in configureStreams()
367 Mutex::Autolock l(mLock); in registerStreamBuffers()
378 Mutex::Autolock l(mLock); in constructDefaultRequestSettings()
718 Mutex::Autolock l(mLock); in processCaptureRequest()
2382 Mutex::Autolock l(mLock); in signalReadoutIdle()
2424 Mutex::Autolock l(mLock); in queueCaptureRequest()
2431 Mutex::Autolock l(mLock); in isIdle()
[all …]
/device/generic/goldfish-opengl/system/codecs/omx/plugin/
DSimpleGoldfishOMXComponent.cpp122 Mutex::Autolock autoLock(mLock); in getParameter()
128 Mutex::Autolock autoLock(mLock); in setParameter()
229 Mutex::Autolock autoLock(mLock); in useBuffer()
317 Mutex::Autolock autoLock(mLock); in freeBuffer()
384 Mutex::Autolock autoLock(mLock); in getState()
392 Mutex::Autolock autoLock(mLock); in onMessageReceived()
/device/google/wahoo/powerstats/
DEaselStateResidencyDataProvider.h40 std::mutex mLock;
DEaselStateResidencyDataProvider.cpp47 std::lock_guard<std::mutex> lock(mLock); in getResults()
/device/google/contexthub/contexthubhal/
Dsystem_comms.h181 mutable std::mutex mLock; // serializes message handling
199 std::lock_guard<std::mutex> _l(mLock); in abort()
214 std::lock_guard<std::mutex> _l(mLock); in getStatus()
306 std::lock_guard<std::mutex> _l(mLock); in haveKeys()

12