Home
last modified time | relevance | path

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

12

/hardware/samsung_slsi/exynos5/exynos_omx/openmax/exynos_omx/osal/
DExynos_OSAL_Mutex.c37 pthread_mutex_t *mutex; in Exynos_OSAL_MutexCreate() local
39 mutex = (pthread_mutex_t *)Exynos_OSAL_Malloc(sizeof(pthread_mutex_t)); in Exynos_OSAL_MutexCreate()
40 if (!mutex) in Exynos_OSAL_MutexCreate()
43 if (pthread_mutex_init(mutex, NULL) != 0) { in Exynos_OSAL_MutexCreate()
44 Exynos_OSAL_Free(mutex); in Exynos_OSAL_MutexCreate()
48 *mutexHandle = (OMX_HANDLETYPE)mutex; in Exynos_OSAL_MutexCreate()
54 pthread_mutex_t *mutex = (pthread_mutex_t *)mutexHandle; in Exynos_OSAL_MutexTerminate() local
56 if (mutex == NULL) in Exynos_OSAL_MutexTerminate()
59 if (pthread_mutex_destroy(mutex) != 0) in Exynos_OSAL_MutexTerminate()
62 Exynos_OSAL_Free(mutex); in Exynos_OSAL_MutexTerminate()
[all …]
DExynos_OSAL_Event.c58 ret = Exynos_OSAL_MutexCreate(&event->mutex); in Exynos_OSAL_SignalCreate()
65 Exynos_OSAL_MutexTerminate(event->mutex); in Exynos_OSAL_SignalCreate()
88 ret = Exynos_OSAL_MutexLock(event->mutex); in Exynos_OSAL_SignalTerminate()
99 ret = Exynos_OSAL_MutexUnlock(event->mutex); in Exynos_OSAL_SignalTerminate()
105 ret = Exynos_OSAL_MutexTerminate(event->mutex); in Exynos_OSAL_SignalTerminate()
127 ret = Exynos_OSAL_MutexLock(event->mutex); in Exynos_OSAL_SignalReset()
135 Exynos_OSAL_MutexUnlock(event->mutex); in Exynos_OSAL_SignalReset()
151 ret = Exynos_OSAL_MutexLock(event->mutex); in Exynos_OSAL_SignalSet()
160 Exynos_OSAL_MutexUnlock(event->mutex); in Exynos_OSAL_SignalSet()
188 ret = Exynos_OSAL_MutexLock(event->mutex); in Exynos_OSAL_SignalWait()
[all …]
/hardware/qcom/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()
/hardware/ti/omap4xxx/domx/mm_osal/src/
Dtimm_osal_events.c69 pthread_mutex_t mutex; member
98 if (SUCCESS != pthread_mutex_init(&(plEvent->mutex), NULL)) in TIMM_OSAL_EventCreate()
108 pthread_mutex_destroy(&(plEvent->mutex)); in TIMM_OSAL_EventCreate()
142 if (SUCCESS != pthread_mutex_lock(&(plEvent->mutex))) in TIMM_OSAL_EventDelete()
154 if (SUCCESS != pthread_mutex_unlock(&(plEvent->mutex))) in TIMM_OSAL_EventDelete()
160 if (SUCCESS != pthread_mutex_destroy(&(plEvent->mutex))) in TIMM_OSAL_EventDelete()
192 if (SUCCESS != pthread_mutex_lock(&(plEvent->mutex))) in TIMM_OSAL_EventSet()
210 pthread_mutex_unlock(&plEvent->mutex); in TIMM_OSAL_EventSet()
221 pthread_mutex_unlock(&plEvent->mutex); in TIMM_OSAL_EventSet()
225 if (SUCCESS != pthread_mutex_unlock(&plEvent->mutex)) in TIMM_OSAL_EventSet()
[all …]
/hardware/qcom/media/mm-video-v4l2/vidc/vdec/src/
Dmessage_queue.c74 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/mm-video-legacy/vidc/vdec/src/
Dmessage_queue.c80 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/invensense/60xx/mlsdk/mllite/
Dmlstates.c58 HANDLE mutex; member
71 return inv_create_mutex(&sStateChangeCallbacks.mutex); in inv_init_state_callbacks()
77 result = inv_destroy_mutex(sStateChangeCallbacks.mutex); in MLStateCloseCallbacks()
181 result = inv_lock_mutex(sStateChangeCallbacks.mutex); in inv_register_state_callback()
207 inv_unlock_mutex(sStateChangeCallbacks.mutex); in inv_register_state_callback()
224 result = inv_lock_mutex(sStateChangeCallbacks.mutex); in inv_unregister_state_callback()
243 inv_unlock_mutex(sStateChangeCallbacks.mutex); in inv_unregister_state_callback()
252 result = inv_lock_mutex(sStateChangeCallbacks.mutex); in inv_run_state_callbacks()
267 inv_unlock_mutex(sStateChangeCallbacks.mutex); in inv_run_state_callbacks()
/hardware/libhardware/modules/gralloc/
Dgr.h50 pthread_mutex_t mutex; variable
58 inline Locker() { pthread_mutex_init(&mutex, 0); } in Locker()
59 inline ~Locker() { pthread_mutex_destroy(&mutex); } in ~Locker()
60 inline void lock() { pthread_mutex_lock(&mutex); } in lock()
61 inline void unlock() { pthread_mutex_unlock(&mutex); } in unlock()
/hardware/invensense/60xx/libsensors_iio/software/core/mllite/linux/
Dmlos_linux.c71 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()
Dmlos.h53 inv_error_t inv_create_mutex(HANDLE *mutex);
54 inv_error_t inv_lock_mutex(HANDLE mutex);
55 inv_error_t inv_unlock_mutex(HANDLE mutex);
/hardware/invensense/65xx/libsensors_iio/software/core/mllite/linux/
Dmlos_linux.c71 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()
Dmlos.h53 inv_error_t inv_create_mutex(HANDLE *mutex);
54 inv_error_t inv_lock_mutex(HANDLE mutex);
55 inv_error_t inv_unlock_mutex(HANDLE mutex);
/hardware/invensense/60xx/mlsdk/platform/linux/
Dmlos_linux.c84 inv_error_t inv_create_mutex(HANDLE *mutex) in inv_create_mutex() argument
97 *mutex = (HANDLE)pm; in inv_create_mutex()
108 inv_error_t inv_lock_mutex(HANDLE mutex) in inv_lock_mutex() argument
111 pthread_mutex_t *pm = (pthread_mutex_t*)mutex; in inv_lock_mutex()
126 inv_error_t inv_unlock_mutex(HANDLE mutex) in inv_unlock_mutex() argument
129 pthread_mutex_t *pm = (pthread_mutex_t*)mutex; in inv_unlock_mutex()
/hardware/qcom/media/mm-video-v4l2/vidc/venc/test/
Dqueue.c74 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()
119 pthread_mutex_unlock(&ptr_q->mutex); in queue_post_cmdq()
140 pthread_mutex_lock(&ptr_q->mutex); in queue_post_dataq()
153 pthread_mutex_unlock(&ptr_q->mutex); in queue_post_dataq()
/hardware/qcom/media/mm-video-legacy/vidc/venc/test/
Dqueue.c80 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()
131 pthread_mutex_unlock(&ptr_q->mutex); in queue_post_cmdq()
152 pthread_mutex_lock(&ptr_q->mutex); in queue_post_dataq()
168 pthread_mutex_unlock(&ptr_q->mutex); in queue_post_dataq()
/hardware/qcom/display/msm8974/libgralloc/
Dgr.h69 pthread_mutex_t mutex; variable
77 inline Locker() { pthread_mutex_init(&mutex, 0); } in Locker()
78 inline ~Locker() { pthread_mutex_destroy(&mutex); } in ~Locker()
79 inline void lock() { pthread_mutex_lock(&mutex); } in lock()
80 inline void unlock() { pthread_mutex_unlock(&mutex); } in unlock()
/hardware/qcom/display/msm8960/libgralloc/
Dgr.h69 pthread_mutex_t mutex; variable
77 inline Locker() { pthread_mutex_init(&mutex, 0); } in Locker()
78 inline ~Locker() { pthread_mutex_destroy(&mutex); } in ~Locker()
79 inline void lock() { pthread_mutex_lock(&mutex); } in lock()
80 inline void unlock() { pthread_mutex_unlock(&mutex); } in unlock()
/hardware/qcom/display/msm8x26/libgralloc/
Dgr.h69 pthread_mutex_t mutex; variable
77 inline Locker() { pthread_mutex_init(&mutex, 0); } in Locker()
78 inline ~Locker() { pthread_mutex_destroy(&mutex); } in ~Locker()
79 inline void lock() { pthread_mutex_lock(&mutex); } in lock()
80 inline void unlock() { pthread_mutex_unlock(&mutex); } in unlock()
/hardware/samsung_slsi/exynos5/libexynosutils/
DExynosMutex.h91 inline Autolock(ExynosMutex& mutex) : mLock(mutex) { mLock.lock(); } in Autolock() argument
94 inline Autolock(ExynosMutex* mutex) : mLock(*mutex) { mLock.lock(); } in Autolock() argument
DExynosMutex.cpp188 ExynosMutex *mutex = new ExynosMutex(); in exynos_mutex_create() local
190 if (mutex->create(type, name) == false) { in exynos_mutex_create()
192 delete mutex; in exynos_mutex_create()
193 mutex = NULL; in exynos_mutex_create()
196 return (void*)mutex; in exynos_mutex_create()
/hardware/samsung_slsi/exynos5/mobicore/daemon/Daemon/Device/
DNotificationQueue.cpp54 mutex.lock(); in putNotification()
60 mutex.unlock(); in putNotification()
70 mutex.lock(); in getNotification()
75 mutex.unlock(); in getNotification()
/hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/
Dmm_camera_thread.c91 pthread_mutex_lock(&poll_cb->mutex); in mm_camera_poll_sig_async()
100 pthread_mutex_unlock(&poll_cb->mutex); in mm_camera_poll_sig_async()
104 pthread_mutex_unlock(&poll_cb->mutex); in mm_camera_poll_sig_async()
136 pthread_mutex_lock(&poll_cb->mutex); in mm_camera_poll_sig()
145 pthread_mutex_unlock(&poll_cb->mutex); in mm_camera_poll_sig()
152 pthread_cond_wait(&poll_cb->cond_v, &poll_cb->mutex); in mm_camera_poll_sig()
155 pthread_mutex_unlock(&poll_cb->mutex); in mm_camera_poll_sig()
172 pthread_mutex_lock(&poll_cb->mutex); in mm_camera_poll_sig_done()
176 pthread_mutex_unlock(&poll_cb->mutex); in mm_camera_poll_sig_done()
487 pthread_mutex_init(&poll_cb->mutex, NULL); in mm_camera_poll_thread_launch()
[all …]
/hardware/invensense/60xx/mlsdk/platform/include/
Dmlos.h64 inv_error_t inv_create_mutex(HANDLE *mutex);
65 inv_error_t inv_lock_mutex(HANDLE mutex);
66 inv_error_t inv_unlock_mutex(HANDLE mutex);
/hardware/qcom/msm8960/kernel-headers/linux/mfd/wcd9xxx/
Dcore.h145 struct mutex io_lock;
146 struct mutex xfer_lock;
147 struct mutex irq_lock;
166 struct mutex pm_lock;
/hardware/ti/omap3/omx/system/src/openmax_il/omx_core/src/
DOMX_Core.c46 static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; variable
122 if(pthread_mutex_lock(&mutex) != 0) in TIOMX_Init()
136 if(pthread_mutex_unlock(&mutex) != 0) in TIOMX_Init()
177 if(pthread_mutex_lock(&mutex) != 0) in TIOMX_GetHandle()
308 if(pthread_mutex_unlock(&mutex) != 0) in TIOMX_GetHandle()
338 if(pthread_mutex_lock(&mutex) != 0) in TIOMX_FreeHandle()
388 if(pthread_mutex_unlock(&mutex) != 0) in TIOMX_FreeHandle()
411 if(pthread_mutex_lock(&mutex) != 0) { in TIOMX_Deinit()
422 if(pthread_mutex_unlock(&mutex) != 0) { in TIOMX_Deinit()

12