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

12

/hardware/samsung_slsi/exynos5/exynos_omx/openmax/exynos_omx/osal/
H A DExynos_OSAL_Mutex.c37 pthread_mutex_t *mutex; local
39 mutex = (pthread_mutex_t *)Exynos_OSAL_Malloc(sizeof(pthread_mutex_t));
40 if (!mutex)
43 if (pthread_mutex_init(mutex, NULL) != 0) {
44 Exynos_OSAL_Free(mutex);
48 *mutexHandle = (OMX_HANDLETYPE)mutex;
54 pthread_mutex_t *mutex = (pthread_mutex_t *)mutexHandle; local
56 if (mutex == NULL)
59 if (pthread_mutex_destroy(mutex) != 0)
62 Exynos_OSAL_Free(mutex);
68 pthread_mutex_t *mutex = (pthread_mutex_t *)mutexHandle; local
82 pthread_mutex_t *mutex = (pthread_mutex_t *)mutexHandle; local
[all...]
H A DExynos_OSAL_Event.c58 ret = Exynos_OSAL_MutexCreate(&event->mutex);
65 Exynos_OSAL_MutexTerminate(event->mutex);
88 ret = Exynos_OSAL_MutexLock(event->mutex);
99 ret = Exynos_OSAL_MutexUnlock(event->mutex);
105 ret = Exynos_OSAL_MutexTerminate(event->mutex);
127 ret = Exynos_OSAL_MutexLock(event->mutex);
135 Exynos_OSAL_MutexUnlock(event->mutex);
151 ret = Exynos_OSAL_MutexLock(event->mutex);
160 Exynos_OSAL_MutexUnlock(event->mutex);
188 ret = Exynos_OSAL_MutexLock(event->mutex);
[all...]
H A DExynos_OSAL_Event.h40 OMX_HANDLETYPE mutex; member in struct:_Exynos_OSAL_THREADEVENT
/hardware/qcom/camera/QCamera2/stack/common/
H A Dcam_semaphore.h37 /* Implement semaphore with mutex and conditional variable.
44 pthread_mutex_t mutex; member in struct:__anon436
50 pthread_mutex_init(&(s->mutex), NULL);
57 pthread_mutex_lock(&(s->mutex));
60 pthread_mutex_unlock(&(s->mutex));
66 pthread_mutex_lock(&(s->mutex));
68 rc = pthread_cond_wait(&(s->cond), &(s->mutex));
70 pthread_mutex_unlock(&(s->mutex));
76 pthread_mutex_destroy(&(s->mutex));
/hardware/libhardware/modules/gralloc/
H A Dgr.h50 pthread_mutex_t mutex; member in class:Locker
58 inline Locker() { pthread_mutex_init(&mutex, 0); }
59 inline ~Locker() { pthread_mutex_destroy(&mutex); }
60 inline void lock() { pthread_mutex_lock(&mutex); }
61 inline void unlock() { pthread_mutex_unlock(&mutex); }
/hardware/samsung_slsi/exynos5/libexynosutils/
H A DExynosMutex.h91 inline Autolock(ExynosMutex& mutex) : mLock(mutex) { mLock.lock(); } argument
94 inline Autolock(ExynosMutex* mutex) : mLock(*mutex) { mLock.lock(); } argument
H A DExynosMutex.cpp188 ExynosMutex *mutex = new ExynosMutex(); local
190 if (mutex->create(type, name) == false) {
191 ALOGE("%s::mutex->create() fail", __func__);
192 delete mutex;
193 mutex = NULL;
196 return (void*)mutex;
/hardware/samsung_slsi/exynos5/mobicore/daemon/Daemon/Device/
H A DNotificationQueue.cpp54 mutex.lock();
60 mutex.unlock();
70 mutex.lock();
75 mutex.unlock();
H A DNotificationQueue.h81 CMutex mutex; member in class:NotificationQueue
/hardware/invensense/60xx/libsensors_iio/software/core/mllite/linux/
H A Dmlos_linux.c68 * @param mutex pointer to mutex handle
71 inv_error_t inv_create_mutex(HANDLE *mutex) argument
84 *mutex = (HANDLE)pm;
92 * @param mutex Mutex handle
95 inv_error_t inv_lock_mutex(HANDLE mutex) argument
98 pthread_mutex_t *pm = (pthread_mutex_t *)mutex;
110 * @param mutex mutex handle
113 inv_error_t inv_unlock_mutex(HANDLE mutex) argument
[all...]
H A 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/
H A Dmlos_linux.c81 * @param mutex pointer to mutex handle
84 inv_error_t inv_create_mutex(HANDLE *mutex) argument
97 *mutex = (HANDLE)pm;
105 * @param mutex Mutex handle
108 inv_error_t inv_lock_mutex(HANDLE mutex) argument
111 pthread_mutex_t *pm = (pthread_mutex_t*)mutex;
123 * @param mutex mutex handle
126 inv_error_t inv_unlock_mutex(HANDLE mutex) argument
[all...]
/hardware/invensense/65xx/libsensors_iio/software/core/mllite/linux/
H A Dmlos_linux.c68 * @param mutex pointer to mutex handle
71 inv_error_t inv_create_mutex(HANDLE *mutex) argument
84 *mutex = (HANDLE)pm;
92 * @param mutex Mutex handle
95 inv_error_t inv_lock_mutex(HANDLE mutex) argument
98 pthread_mutex_t *pm = (pthread_mutex_t *)mutex;
110 * @param mutex mutex handle
113 inv_error_t inv_unlock_mutex(HANDLE mutex) argument
[all...]
H A 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/qcom/media/mm-video-legacy/vidc/venc/test/
H A Dqueue.c79 /* Lock the mutex to protect the critical section */
80 pthread_mutex_lock(&ptr_q->mutex);
95 /* Unlock the mutex to release the critical section */
96 pthread_mutex_unlock(&ptr_q->mutex);
114 /* Lock the mutex to protect the critical section */
115 pthread_mutex_lock(&ptr_q->mutex);
130 /* Unlock the mutex to release the critical section */
131 pthread_mutex_unlock(&ptr_q->mutex);
151 /* Lock the mutex to protect the critical section */
152 pthread_mutex_lock(&ptr_q->mutex);
[all...]
/hardware/qcom/media/mm-video-v4l2/vidc/venc/test/
H A Dqueue.c73 /* Lock the mutex to protect the critical section */
74 pthread_mutex_lock(&ptr_q->mutex);
86 /* Unlock the mutex to release the critical section */
87 pthread_mutex_unlock(&ptr_q->mutex);
105 /* Lock the mutex to protect the critical section */
106 pthread_mutex_lock(&ptr_q->mutex);
118 /* Unlock the mutex to release the critical section */
119 pthread_mutex_unlock(&ptr_q->mutex);
139 /* Lock the mutex to protect the critical section */
140 pthread_mutex_lock(&ptr_q->mutex);
[all...]
/hardware/qcom/media/mm-video-legacy/vidc/vdec/src/
H A Dmessage_queue.c79 /* Lock the mutex to protect the critical section */
80 pthread_mutex_lock(&ptr_q->mutex);
95 /* Unlock the mutex to release the critical section */
96 pthread_mutex_unlock(&ptr_q->mutex);
114 /* Lock the mutex to protect the critical section */
115 pthread_mutex_lock(&ptr_q->mutex);
120 /* Unlock the mutex to release the critical section */
121 pthread_mutex_unlock(&ptr_q->mutex);
132 /* Unlock the mutex to release the critical section */
133 pthread_mutex_unlock(&ptr_q->mutex);
[all...]
/hardware/qcom/media/mm-video-v4l2/vidc/vdec/src/
H A Dmessage_queue.c73 /* Lock the mutex to protect the critical section */
74 pthread_mutex_lock(&ptr_q->mutex);
86 /* Unlock the mutex to release the critical section */
87 pthread_mutex_unlock(&ptr_q->mutex);
105 /* Lock the mutex to protect the critical section */
106 pthread_mutex_lock(&ptr_q->mutex);
110 /* Unlock the mutex to release the critical section */
111 pthread_mutex_unlock(&ptr_q->mutex);
120 /* Unlock the mutex to release the critical section */
121 pthread_mutex_unlock(&ptr_q->mutex);
[all...]
/hardware/qcom/display/msm8960/libgralloc/
H A Dgr.h69 pthread_mutex_t mutex; member in class:Locker
77 inline Locker() { pthread_mutex_init(&mutex, 0); }
78 inline ~Locker() { pthread_mutex_destroy(&mutex); }
79 inline void lock() { pthread_mutex_lock(&mutex); }
80 inline void unlock() { pthread_mutex_unlock(&mutex); }
/hardware/qcom/display/msm8974/libgralloc/
H A Dgr.h69 pthread_mutex_t mutex; member in class:Locker
77 inline Locker() { pthread_mutex_init(&mutex, 0); }
78 inline ~Locker() { pthread_mutex_destroy(&mutex); }
79 inline void lock() { pthread_mutex_lock(&mutex); }
80 inline void unlock() { pthread_mutex_unlock(&mutex); }
/hardware/qcom/display/msm8x26/libgralloc/
H A Dgr.h69 pthread_mutex_t mutex; member in class:Locker
77 inline Locker() { pthread_mutex_init(&mutex, 0); }
78 inline ~Locker() { pthread_mutex_destroy(&mutex); }
79 inline void lock() { pthread_mutex_lock(&mutex); }
80 inline void unlock() { pthread_mutex_unlock(&mutex); }
/hardware/invensense/60xx/mlsdk/mllite/
H A Dmlstates.c58 HANDLE mutex; member in struct:state_callback_obj
71 return inv_create_mutex(&sStateChangeCallbacks.mutex);
77 result = inv_destroy_mutex(sStateChangeCallbacks.mutex);
181 result = inv_lock_mutex(sStateChangeCallbacks.mutex);
207 inv_unlock_mutex(sStateChangeCallbacks.mutex);
224 result = inv_lock_mutex(sStateChangeCallbacks.mutex);
243 inv_unlock_mutex(sStateChangeCallbacks.mutex);
252 result = inv_lock_mutex(sStateChangeCallbacks.mutex);
262 break; // Can't return, must release mutex
267 inv_unlock_mutex(sStateChangeCallbacks.mutex);
[all...]
/hardware/ti/omap4xxx/domx/mm_osal/src/
H A Dtimm_osal_events.c69 pthread_mutex_t mutex; member in struct:__anon2188
98 if (SUCCESS != pthread_mutex_init(&(plEvent->mutex), NULL))
108 pthread_mutex_destroy(&(plEvent->mutex));
142 if (SUCCESS != pthread_mutex_lock(&(plEvent->mutex)))
154 if (SUCCESS != pthread_mutex_unlock(&(plEvent->mutex)))
160 if (SUCCESS != pthread_mutex_destroy(&(plEvent->mutex)))
192 if (SUCCESS != pthread_mutex_lock(&(plEvent->mutex)))
210 pthread_mutex_unlock(&plEvent->mutex);
221 pthread_mutex_unlock(&plEvent->mutex);
225 if (SUCCESS != pthread_mutex_unlock(&plEvent->mutex))
[all...]
/hardware/invensense/60xx/mlsdk/platform/include/
H A 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/media/mm-video-legacy/vidc/vdec/inc/
H A Dmessage_queue.h53 pthread_mutex_t mutex; member in struct:video_queue_context

Completed in 981 milliseconds

12