Home
last modified time | relevance | path

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

/device/asus/flo/camera/QCamera2/stack/common/
Dcam_semaphore.h44 pthread_mutex_t mutex; member
50 pthread_mutex_init(&(s->mutex), NULL); in cam_sem_init()
57 pthread_mutex_lock(&(s->mutex)); in cam_sem_post()
60 pthread_mutex_unlock(&(s->mutex)); in cam_sem_post()
66 pthread_mutex_lock(&(s->mutex)); in cam_sem_wait()
68 rc = pthread_cond_wait(&(s->cond), &(s->mutex)); in cam_sem_wait()
70 pthread_mutex_unlock(&(s->mutex)); in cam_sem_wait()
76 pthread_mutex_destroy(&(s->mutex)); in cam_sem_destroy()
/device/lge/hammerhead/camera/QCamera2/stack/common/
Dcam_semaphore.h44 pthread_mutex_t mutex; member
50 pthread_mutex_init(&(s->mutex), NULL); in cam_sem_init()
57 pthread_mutex_lock(&(s->mutex)); in cam_sem_post()
60 pthread_mutex_unlock(&(s->mutex)); in cam_sem_post()
66 pthread_mutex_lock(&(s->mutex)); in cam_sem_wait()
68 rc = pthread_cond_wait(&(s->cond), &(s->mutex)); in cam_sem_wait()
70 pthread_mutex_unlock(&(s->mutex)); in cam_sem_wait()
76 pthread_mutex_destroy(&(s->mutex)); in cam_sem_destroy()
/device/moto/shamu/camera/QCamera2/stack/common/
Dcam_semaphore.h44 pthread_mutex_t mutex; member
50 pthread_mutex_init(&(s->mutex), NULL); in cam_sem_init()
57 pthread_mutex_lock(&(s->mutex)); in cam_sem_post()
60 pthread_mutex_unlock(&(s->mutex)); in cam_sem_post()
66 pthread_mutex_lock(&(s->mutex)); in cam_sem_wait()
68 rc = pthread_cond_wait(&(s->cond), &(s->mutex)); in cam_sem_wait()
70 pthread_mutex_unlock(&(s->mutex)); in cam_sem_wait()
76 pthread_mutex_destroy(&(s->mutex)); in cam_sem_destroy()
/device/asus/flo/camera/QCamera2/stack/mm-camera-interface/src/
Dmm_camera_thread.c90 pthread_mutex_lock(&poll_cb->mutex); in mm_camera_poll_sig_async()
99 pthread_mutex_unlock(&poll_cb->mutex); in mm_camera_poll_sig_async()
103 pthread_mutex_unlock(&poll_cb->mutex); in mm_camera_poll_sig_async()
135 pthread_mutex_lock(&poll_cb->mutex); in mm_camera_poll_sig()
144 pthread_mutex_unlock(&poll_cb->mutex); in mm_camera_poll_sig()
151 pthread_cond_wait(&poll_cb->cond_v, &poll_cb->mutex); in mm_camera_poll_sig()
154 pthread_mutex_unlock(&poll_cb->mutex); in mm_camera_poll_sig()
171 pthread_mutex_lock(&poll_cb->mutex); in mm_camera_poll_sig_done()
175 pthread_mutex_unlock(&poll_cb->mutex); in mm_camera_poll_sig_done()
485 pthread_mutex_init(&poll_cb->mutex, NULL); in mm_camera_poll_thread_launch()
[all …]
/device/moto/shamu/camera/QCamera2/stack/mm-camera-interface/src/
Dmm_camera_thread.c93 pthread_mutex_lock(&poll_cb->mutex); in mm_camera_poll_sig_async()
102 pthread_mutex_unlock(&poll_cb->mutex); in mm_camera_poll_sig_async()
106 pthread_mutex_unlock(&poll_cb->mutex); in mm_camera_poll_sig_async()
138 pthread_mutex_lock(&poll_cb->mutex); in mm_camera_poll_sig()
147 pthread_mutex_unlock(&poll_cb->mutex); in mm_camera_poll_sig()
154 pthread_cond_wait(&poll_cb->cond_v, &poll_cb->mutex); in mm_camera_poll_sig()
157 pthread_mutex_unlock(&poll_cb->mutex); in mm_camera_poll_sig()
174 pthread_mutex_lock(&poll_cb->mutex); in mm_camera_poll_sig_done()
178 pthread_mutex_unlock(&poll_cb->mutex); in mm_camera_poll_sig_done()
512 pthread_mutex_init(&poll_cb->mutex, NULL); in mm_camera_poll_thread_launch()
[all …]
/device/lge/hammerhead/camera/QCamera2/stack/mm-camera-interface/src/
Dmm_camera_thread.c93 pthread_mutex_lock(&poll_cb->mutex); in mm_camera_poll_sig_async()
102 pthread_mutex_unlock(&poll_cb->mutex); in mm_camera_poll_sig_async()
106 pthread_mutex_unlock(&poll_cb->mutex); in mm_camera_poll_sig_async()
138 pthread_mutex_lock(&poll_cb->mutex); in mm_camera_poll_sig()
147 pthread_mutex_unlock(&poll_cb->mutex); in mm_camera_poll_sig()
154 pthread_cond_wait(&poll_cb->cond_v, &poll_cb->mutex); in mm_camera_poll_sig()
157 pthread_mutex_unlock(&poll_cb->mutex); in mm_camera_poll_sig()
174 pthread_mutex_lock(&poll_cb->mutex); in mm_camera_poll_sig_done()
178 pthread_mutex_unlock(&poll_cb->mutex); in mm_camera_poll_sig_done()
514 pthread_mutex_init(&poll_cb->mutex, NULL); in mm_camera_poll_thread_launch()
[all …]
/device/moto/shamu/camera/QCamera/stack/mm-camera-interface/src/
Dmm_camera_thread.c74 pthread_mutex_lock(&poll_cb->mutex); in mm_camera_poll_sig()
87 pthread_cond_wait(&poll_cb->cond_v, &poll_cb->mutex); in mm_camera_poll_sig()
90 pthread_mutex_unlock(&poll_cb->mutex); in mm_camera_poll_sig()
97 pthread_mutex_lock(&poll_cb->mutex); in mm_camera_poll_sig_done()
101 pthread_mutex_unlock(&poll_cb->mutex); in mm_camera_poll_sig_done()
319 pthread_mutex_init(&poll_cb->mutex, NULL); in mm_camera_poll_thread_launch()
323 pthread_mutex_lock(&poll_cb->mutex); in mm_camera_poll_thread_launch()
327 pthread_cond_wait(&poll_cb->cond_v, &poll_cb->mutex); in mm_camera_poll_thread_launch()
329 pthread_mutex_unlock(&poll_cb->mutex); in mm_camera_poll_thread_launch()
357 pthread_mutex_destroy(&poll_cb->mutex); in mm_camera_poll_thread_release()
/device/moto/shamu/camera/QCamera/HAL/usbcamcore/src/
DQCameraMjpegDecode.cpp107 pthread_mutex_t mutex; member
213 os_mutex_init(&thread_ctrl_blks[i].mutex); in mjpegDecode()
449 os_mutex_lock(&p_thread_arg->mutex); in decoder_test()
452 … rc = mjpegd_cond_timedwait(&p_thread_arg->cond, &p_thread_arg->mutex, p_args->abort_time); in decoder_test()
456 os_mutex_unlock(&p_thread_arg->mutex); in decoder_test()
467 os_mutex_unlock(&p_thread_arg->mutex); in decoder_test()
470 os_mutex_lock(&p_thread_arg->mutex); in decoder_test()
473 os_cond_wait(&p_thread_arg->cond, &p_thread_arg->mutex); in decoder_test()
475 os_mutex_unlock(&p_thread_arg->mutex); in decoder_test()
566 os_mutex_lock(&p_thread_arg->mutex); in decoder_event_handler()
[all …]
/device/lge/hammerhead/camera/hdr/include/
Dmorpho_easy_hdr.h121 int (* mutex_destroy)(void *p, void *mutex);
122 int (* mutex_lock )(void *p, void *mutex);
123 int (* mutex_trylock)(void *p, void *mutex);
124 int (* mutex_unlock )(void *p, void *mutex);
/device/asus/flo/camera/hdr/include/
Dmorpho_easy_hdr.h121 int (* mutex_destroy)(void *p, void *mutex);
122 int (* mutex_lock )(void *p, void *mutex);
123 int (* mutex_trylock)(void *p, void *mutex);
124 int (* mutex_unlock )(void *p, void *mutex);
/device/generic/goldfish/fingerprint/
Dfingerprint.c42 pthread_mutex_t mutex; member
72 pthread_mutex_destroy(&dev->listener.mutex); in destroyListenerThread()
98 pthread_mutex_lock(&dev->listener.mutex); in listener_send_notice()
129 pthread_mutex_unlock(&dev->listener.mutex); in listener_send_notice()
224 pthread_mutex_init(&dev->listener.mutex, NULL); in createListenerThread()
240 pthread_mutex_lock(&dev->listener.mutex); in setListenerState()
242 pthread_mutex_unlock(&dev->listener.mutex); in setListenerState()
/device/asus/flo/camera/QCamera2/stack/mm-camera-interface/inc/
Dmm_camera.h137 pthread_mutex_t mutex; member
/device/lge/hammerhead/camera/QCamera2/stack/mm-camera-interface/inc/
Dmm_camera.h137 pthread_mutex_t mutex; member
/device/moto/shamu/camera/QCamera2/stack/mm-camera-interface/inc/
Dmm_camera.h157 pthread_mutex_t mutex; member
/device/moto/shamu/camera/QCamera/stack/mm-camera-interface/inc/
Dmm_camera.h161 pthread_mutex_t mutex; member