/hardware/qcom/camera/msm8998/QCamera2/stack/common/ |
D | cam_semaphore.h | 49 pthread_mutex_t mutex; member 55 pthread_mutex_init(&(s->mutex), NULL); in cam_sem_init() 62 pthread_mutex_lock(&(s->mutex)); in cam_sem_post() 65 pthread_mutex_unlock(&(s->mutex)); in cam_sem_post() 71 pthread_mutex_lock(&(s->mutex)); in cam_sem_wait() 73 rc = pthread_cond_wait(&(s->cond), &(s->mutex)); in cam_sem_wait() 75 pthread_mutex_unlock(&(s->mutex)); in cam_sem_wait() 82 pthread_mutex_lock(&(s->mutex)); in cam_sem_timedwait() 84 rc = pthread_cond_timedwait(&(s->cond), &(s->mutex), abs_timeout); in cam_sem_timedwait() 89 pthread_mutex_unlock(&(s->mutex)); in cam_sem_timedwait() [all …]
|
/hardware/interfaces/bluetooth/1.0/default/test/ |
D | h4_protocol_unittest.cc | 69 ACTION_P2(Notify, mutex, condition) { in ACTION_P2() argument 71 std::unique_lock<std::mutex> lock(*mutex); in ACTION_P2() 130 std::mutex mutex; in WriteAndExpectInboundAclData() local 134 .WillOnce(Notify(&mutex, &done)); in WriteAndExpectInboundAclData() 140 std::unique_lock<std::mutex> lock(mutex); in WriteAndExpectInboundAclData() 155 std::mutex mutex; in WriteAndExpectInboundScoData() local 159 .WillOnce(Notify(&mutex, &done)); in WriteAndExpectInboundScoData() 165 std::unique_lock<std::mutex> lock(mutex); in WriteAndExpectInboundScoData() 179 std::mutex mutex; in WriteAndExpectInboundEvent() local 183 .WillOnce(Notify(&mutex, &done)); in WriteAndExpectInboundEvent() [all …]
|
D | mct_protocol_unittest.cc | 62 ACTION_P2(Notify, mutex, condition) { in ACTION_P2() argument 64 std::unique_lock<std::mutex> lock(*mutex); in ACTION_P2() 132 std::mutex mutex; in WriteAndExpectInboundAclData() local 136 .WillOnce(Notify(&mutex, &done)); in WriteAndExpectInboundAclData() 142 std::unique_lock<std::mutex> lock(mutex); in WriteAndExpectInboundAclData() 157 std::mutex mutex; in WriteAndExpectInboundEvent() local 161 .WillOnce(Notify(&mutex, &done)); in WriteAndExpectInboundEvent() 167 std::unique_lock<std::mutex> lock(mutex); in WriteAndExpectInboundEvent()
|
/hardware/qcom/sdm845/display/libhistogram/ |
D | ringbuffer.cpp | 61 std::unique_lock<decltype(mutex)> lk(mutex); in insert() 73 std::unique_lock<decltype(mutex)> lk(mutex); in resize() 83 std::unique_lock<decltype(mutex)> lk(mutex); in collect_cumulative() 90 std::unique_lock<decltype(mutex)> lk(mutex); in collect_ringbuffer_all() 96 std::unique_lock<decltype(mutex)> lk(mutex); in collect_after() 101 std::unique_lock<decltype(mutex)> lk(mutex); in collect_max() 107 std::unique_lock<decltype(mutex)> lk(mutex); in collect_max_after() 112 uint32_t max_frames, std::unique_lock<std::mutex> const&) const { in collect_max() 133 nsecs_t timestamp, uint32_t max_frames, std::unique_lock<std::mutex> const& lk) const { in collect_max_after()
|
/hardware/qcom/sm8150/display/libhistogram/ |
D | ringbuffer.cpp | 61 std::unique_lock<decltype(mutex)> lk(mutex); in insert() 73 std::unique_lock<decltype(mutex)> lk(mutex); in resize() 83 std::unique_lock<decltype(mutex)> lk(mutex); in collect_cumulative() 90 std::unique_lock<decltype(mutex)> lk(mutex); in collect_ringbuffer_all() 96 std::unique_lock<decltype(mutex)> lk(mutex); in collect_after() 101 std::unique_lock<decltype(mutex)> lk(mutex); in collect_max() 107 std::unique_lock<decltype(mutex)> lk(mutex); in collect_max_after() 112 uint32_t max_frames, std::unique_lock<std::mutex> const&) const { in collect_max() 133 nsecs_t timestamp, uint32_t max_frames, std::unique_lock<std::mutex> const& lk) const { in collect_max_after()
|
/hardware/interfaces/graphics/composer/2.1/utils/vts/ |
D | GraphicsComposerCallback.cpp | 27 std::lock_guard<std::mutex> lock(mMutex); in setVsyncAllowed() 32 std::lock_guard<std::mutex> lock(mMutex); in getDisplays() 37 std::lock_guard<std::mutex> lock(mMutex); in getInvalidHotplugCount() 42 std::lock_guard<std::mutex> lock(mMutex); in getInvalidRefreshCount() 47 std::lock_guard<std::mutex> lock(mMutex); in getInvalidVsyncCount() 52 std::lock_guard<std::mutex> lock(mMutex); in onHotplug() 68 std::lock_guard<std::mutex> lock(mMutex); in onRefresh() 78 std::lock_guard<std::mutex> lock(mMutex); in onVsync()
|
/hardware/ti/am57x/libhwcomposer/ |
D | display.cpp | 41 std::unique_lock<std::mutex> lock(this->mutex); in setup_composition_pipes() 61 std::unique_lock<std::mutex> lock(display->mutex); in page_flip_handler() 106 std::unique_lock<std::mutex> lock(display->mutex); in vblank_handler() 120 std::unique_lock<std::mutex> lock(this->mutex); in set_vsync_state() 156 std::unique_lock<std::mutex> lock(this->mutex); in update_display() 193 std::unique_lock<std::mutex> lock(this->mutex); in blank() 220 std::unique_lock<std::mutex> lock(this->mutex); in get_display_configs() 239 std::unique_lock<std::mutex> lock(this->mutex); in get_display_attributes()
|
/hardware/qcom/display/msm8998/sdm/include/utils/ |
D | sync_task.h | 58 std::unique_lock<std::mutex> caller_lock(caller_mutex_); in SyncTask() 76 std::unique_lock<std::mutex> caller_lock(caller_mutex_); in PerformTask() 81 std::unique_lock<std::mutex> worker_lock(worker_mutex_); in PerformTask() 103 std::unique_lock<std::mutex> worker_lock(worker_mutex_); in OnThreadCallback() 108 std::unique_lock<std::mutex> caller_lock(caller_mutex_); in OnThreadCallback() 124 std::unique_lock<std::mutex> caller_lock(caller_mutex_); in OnThreadCallback() 133 std::mutex caller_mutex_; 134 std::mutex worker_mutex_;
|
/hardware/qcom/sm8150/display/sdm/include/utils/ |
D | sync_task.h | 58 std::unique_lock<std::mutex> caller_lock(caller_mutex_); in SyncTask() 76 std::unique_lock<std::mutex> caller_lock(caller_mutex_); in PerformTask() 81 std::unique_lock<std::mutex> worker_lock(worker_mutex_); in PerformTask() 103 std::unique_lock<std::mutex> worker_lock(worker_mutex_); in OnThreadCallback() 108 std::unique_lock<std::mutex> caller_lock(caller_mutex_); in OnThreadCallback() 124 std::unique_lock<std::mutex> caller_lock(caller_mutex_); in OnThreadCallback() 133 std::mutex caller_mutex_; 134 std::mutex worker_mutex_;
|
/hardware/qcom/display/msm8909w_3100/sdm/include/utils/ |
D | sync_task.h | 58 std::unique_lock<std::mutex> caller_lock(caller_mutex_); in SyncTask() 76 std::unique_lock<std::mutex> caller_lock(caller_mutex_); in PerformTask() 81 std::unique_lock<std::mutex> worker_lock(worker_mutex_); in PerformTask() 103 std::unique_lock<std::mutex> worker_lock(worker_mutex_); in OnThreadCallback() 108 std::unique_lock<std::mutex> caller_lock(caller_mutex_); in OnThreadCallback() 124 std::unique_lock<std::mutex> caller_lock(caller_mutex_); in OnThreadCallback() 133 std::mutex caller_mutex_; 134 std::mutex worker_mutex_;
|
/hardware/qcom/sdm845/display/sdm/include/utils/ |
D | sync_task.h | 58 std::unique_lock<std::mutex> caller_lock(caller_mutex_); in SyncTask() 76 std::unique_lock<std::mutex> caller_lock(caller_mutex_); in PerformTask() 81 std::unique_lock<std::mutex> worker_lock(worker_mutex_); in PerformTask() 103 std::unique_lock<std::mutex> worker_lock(worker_mutex_); in OnThreadCallback() 108 std::unique_lock<std::mutex> caller_lock(caller_mutex_); in OnThreadCallback() 124 std::unique_lock<std::mutex> caller_lock(caller_mutex_); in OnThreadCallback() 133 std::mutex caller_mutex_; 134 std::mutex worker_mutex_;
|
/hardware/qcom/display/msm8909/sdm/include/utils/ |
D | sync_task.h | 58 std::unique_lock<std::mutex> caller_lock(caller_mutex_); in SyncTask() 76 std::unique_lock<std::mutex> caller_lock(caller_mutex_); in PerformTask() 81 std::unique_lock<std::mutex> worker_lock(worker_mutex_); in PerformTask() 103 std::unique_lock<std::mutex> worker_lock(worker_mutex_); in OnThreadCallback() 108 std::unique_lock<std::mutex> caller_lock(caller_mutex_); in OnThreadCallback() 124 std::unique_lock<std::mutex> caller_lock(caller_mutex_); in OnThreadCallback() 133 std::mutex caller_mutex_; 134 std::mutex worker_mutex_;
|
/hardware/qcom/camera/msm8998/QCamera2/HAL3/ |
D | QCamera3HdrPlusListenerThread.cpp | 47 std::unique_lock<std::mutex> l(mCallbackLock); in onOpened() 58 std::unique_lock<std::mutex> l(mCallbackLock); in onOpenFailed() 70 std::unique_lock<std::mutex> l(mCallbackLock); in onFatalError() 82 std::unique_lock<std::mutex> l(mCallbackLock); in onCaptureResult() 96 std::unique_lock<std::mutex> l(mCallbackLock); in onFailedCaptureResult() 110 std::unique_lock<std::mutex> l(mCallbackLock); in onShutter() 121 std::unique_lock<std::mutex> l(mCallbackLock); in onNextCaptureReady() 133 std::unique_lock<std::mutex> l(mCallbackLock); in onPostview() 151 std::unique_lock<std::mutex> l(mCallbackLock); in requestExit() 160 std::unique_lock<std::mutex> lock(mCallbackLock); in handleFatalError() [all …]
|
/hardware/qcom/media/msm8974/mm-video-v4l2/vidc/vdec/src/ |
D | message_queue.c | 74 pthread_mutex_lock(&ptr_q->mutex); in queue_get_cmd() 87 pthread_mutex_unlock(&ptr_q->mutex); in queue_get_cmd() 106 pthread_mutex_lock(&ptr_q->mutex); in queue_post_cmdq() 111 pthread_mutex_unlock(&ptr_q->mutex); in queue_post_cmdq() 121 pthread_mutex_unlock(&ptr_q->mutex); in queue_post_cmdq() 142 pthread_mutex_lock(&ptr_q->mutex); in queue_post_dataq() 147 pthread_mutex_unlock(&ptr_q->mutex); in queue_post_dataq() 157 pthread_mutex_unlock(&ptr_q->mutex); in queue_post_dataq()
|
/hardware/qcom/sm8150/media/mm-video-v4l2/vidc/vdec/src/ |
D | message_queue.c | 74 pthread_mutex_lock(&ptr_q->mutex); in queue_get_cmd() 87 pthread_mutex_unlock(&ptr_q->mutex); in queue_get_cmd() 106 pthread_mutex_lock(&ptr_q->mutex); in queue_post_cmdq() 111 pthread_mutex_unlock(&ptr_q->mutex); in queue_post_cmdq() 121 pthread_mutex_unlock(&ptr_q->mutex); in queue_post_cmdq() 142 pthread_mutex_lock(&ptr_q->mutex); in queue_post_dataq() 147 pthread_mutex_unlock(&ptr_q->mutex); in queue_post_dataq() 157 pthread_mutex_unlock(&ptr_q->mutex); in queue_post_dataq()
|
/hardware/qcom/media/msm8974/mm-video-legacy/vidc/vdec/src/ |
D | message_queue.c | 80 pthread_mutex_lock(&ptr_q->mutex); in queue_get_cmd() 96 pthread_mutex_unlock(&ptr_q->mutex); in queue_get_cmd() 115 pthread_mutex_lock(&ptr_q->mutex); in queue_post_cmdq() 121 pthread_mutex_unlock(&ptr_q->mutex); in queue_post_cmdq() 133 pthread_mutex_unlock(&ptr_q->mutex); in queue_post_cmdq() 154 pthread_mutex_lock(&ptr_q->mutex); in queue_post_dataq() 160 pthread_mutex_unlock(&ptr_q->mutex); in queue_post_dataq() 172 pthread_mutex_unlock(&ptr_q->mutex); in queue_post_dataq()
|
/hardware/qcom/sdm845/media/mm-video-v4l2/vidc/vdec/src/ |
D | message_queue.c | 74 pthread_mutex_lock(&ptr_q->mutex); in queue_get_cmd() 87 pthread_mutex_unlock(&ptr_q->mutex); in queue_get_cmd() 106 pthread_mutex_lock(&ptr_q->mutex); in queue_post_cmdq() 111 pthread_mutex_unlock(&ptr_q->mutex); in queue_post_cmdq() 121 pthread_mutex_unlock(&ptr_q->mutex); in queue_post_cmdq() 142 pthread_mutex_lock(&ptr_q->mutex); in queue_post_dataq() 147 pthread_mutex_unlock(&ptr_q->mutex); in queue_post_dataq() 157 pthread_mutex_unlock(&ptr_q->mutex); in queue_post_dataq()
|
/hardware/qcom/media/msm8998/mm-video-v4l2/vidc/vdec/src/ |
D | message_queue.c | 74 pthread_mutex_lock(&ptr_q->mutex); in queue_get_cmd() 87 pthread_mutex_unlock(&ptr_q->mutex); in queue_get_cmd() 106 pthread_mutex_lock(&ptr_q->mutex); in queue_post_cmdq() 111 pthread_mutex_unlock(&ptr_q->mutex); in queue_post_cmdq() 121 pthread_mutex_unlock(&ptr_q->mutex); in queue_post_cmdq() 142 pthread_mutex_lock(&ptr_q->mutex); in queue_post_dataq() 147 pthread_mutex_unlock(&ptr_q->mutex); in queue_post_dataq() 157 pthread_mutex_unlock(&ptr_q->mutex); in queue_post_dataq()
|
/hardware/qcom/media/msm8996/mm-video-v4l2/vidc/vdec/src/ |
D | message_queue.c | 74 pthread_mutex_lock(&ptr_q->mutex); in queue_get_cmd() 87 pthread_mutex_unlock(&ptr_q->mutex); in queue_get_cmd() 106 pthread_mutex_lock(&ptr_q->mutex); in queue_post_cmdq() 111 pthread_mutex_unlock(&ptr_q->mutex); in queue_post_cmdq() 121 pthread_mutex_unlock(&ptr_q->mutex); in queue_post_cmdq() 142 pthread_mutex_lock(&ptr_q->mutex); in queue_post_dataq() 147 pthread_mutex_unlock(&ptr_q->mutex); in queue_post_dataq() 157 pthread_mutex_unlock(&ptr_q->mutex); in queue_post_dataq()
|
/hardware/libhardware/modules/gralloc/ |
D | gr.h | 46 pthread_mutex_t mutex; variable 54 inline Locker() { pthread_mutex_init(&mutex, 0); } in Locker() 55 inline ~Locker() { pthread_mutex_destroy(&mutex); } in ~Locker() 56 inline void lock() { pthread_mutex_lock(&mutex); } in lock() 57 inline void unlock() { pthread_mutex_unlock(&mutex); } in unlock()
|
/hardware/invensense/65xx/libsensors_iio/software/core/mllite/linux/ |
D | mlos_linux.c | 71 inv_error_t inv_create_mutex(HANDLE *mutex) in inv_create_mutex() argument 84 *mutex = (HANDLE)pm; in inv_create_mutex() 95 inv_error_t inv_lock_mutex(HANDLE mutex) in inv_lock_mutex() argument 98 pthread_mutex_t *pm = (pthread_mutex_t *)mutex; in inv_lock_mutex() 113 inv_error_t inv_unlock_mutex(HANDLE mutex) in inv_unlock_mutex() argument 116 pthread_mutex_t *pm = (pthread_mutex_t *)mutex; in inv_unlock_mutex()
|
/hardware/invensense/6515/libsensors_iio/software/core/mllite/linux/ |
D | mlos_linux.c | 71 inv_error_t inv_create_mutex(HANDLE *mutex) in inv_create_mutex() argument 84 *mutex = (HANDLE)pm; in inv_create_mutex() 95 inv_error_t inv_lock_mutex(HANDLE mutex) in inv_lock_mutex() argument 98 pthread_mutex_t *pm = (pthread_mutex_t *)mutex; in inv_lock_mutex() 113 inv_error_t inv_unlock_mutex(HANDLE mutex) in inv_unlock_mutex() argument 116 pthread_mutex_t *pm = (pthread_mutex_t *)mutex; in inv_unlock_mutex()
|
/hardware/interfaces/sensors/common/vts/utils/ |
D | SensorsHidlEnvironmentBase.cpp | 38 std::lock_guard<std::mutex> lock(mEventsMutex); in catEvents() 46 std::lock_guard<std::mutex> lock(mEventsMutex); in setCollection() 51 std::lock_guard<std::mutex> lock(mEventsMutex); in addEvent() 62 std::lock_guard<std::mutex> lock(mEventsMutex); in registerCallback() 67 std::lock_guard<std::mutex> lock(mEventsMutex); in unregisterCallback()
|
/hardware/interfaces/broadcastradio/1.1/default/ |
D | Tuner.cpp | 50 using std::mutex; 71 lock_guard<mutex> lk(mMut); in forceClose() 106 lock_guard<mutex> lk(mMut); in setConfiguration() 117 lock_guard<mutex> lk(mMut); in setConfiguration() 127 lock_guard<mutex> lk(mMut); in getConfiguration() 178 lock_guard<mutex> lk(mMut); in scan() 223 lock_guard<mutex> lk(mMut); in scan() 233 lock_guard<mutex> lk(mMut); in step() 252 lock_guard<mutex> lk(mMut); in step() 276 lock_guard<mutex> lk(mMut); in tune() [all …]
|
/hardware/interfaces/broadcastradio/common/tests/ |
D | WorkerThread_test.cpp | 31 using std::mutex; 76 mutex mut; in TEST() 82 lock_guard<mutex> lk(mut); in TEST() 89 lock_guard<mutex> lk(mut); in TEST() 96 lock_guard<mutex> lk(mut); in TEST() 103 lock_guard<mutex> lk(mut); in TEST() 110 lock_guard<mutex> lk(mut); in TEST()
|