Searched defs:mutex (Results 1 - 25 of 29) sorted by relevance

12

/hardware/samsung_slsi/exynos5/mobicore/daemon/Daemon/Device/
H A DNotificationQueue.h81 CMutex mutex; member in class:NotificationQueue
H A DMobiCoreDevice.cpp143 static CMutex mutex; local
149 mutex.lock();
160 mutex.unlock();
/hardware/samsung_slsi/exynos5/exynos_omx/openmax/exynos_omx/osal/
H A DExynos_OSAL_Event.h40 OMX_HANDLETYPE mutex; member in struct:_Exynos_OSAL_THREADEVENT
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...]
/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/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/qcom/media/mm-video-legacy/vidc/vdec/inc/
H A Dmessage_queue.h53 pthread_mutex_t mutex; member in struct:video_queue_context
/hardware/qcom/media/mm-video-legacy/vidc/venc/inc/
H A Dqueue.h53 pthread_mutex_t mutex; member in struct:video_queue_context
/hardware/qcom/media/mm-video-v4l2/vidc/vdec/inc/
H A Dmessage_queue.h51 pthread_mutex_t mutex; member in struct:video_queue_context
/hardware/qcom/media/mm-video-v4l2/vidc/venc/inc/
H A Dqueue.h51 pthread_mutex_t mutex; member in struct:video_queue_context
/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/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...]
/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/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...]
/hardware/samsung_slsi/exynos5/libexynosutils/
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;
H A DExynosMutex.h91 inline Autolock(ExynosMutex& mutex) : mLock(mutex) { mLock.lock(); } argument
94 inline Autolock(ExynosMutex* mutex) : mLock(*mutex) { mLock.lock(); } argument
/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/samsung_slsi/exynos5/mobicore/daemon/ClientLib/
H A DClientLib.cpp392 break; // loading of Trustlet failed, unlock mutex and return
434 break; // unlock mutex and return
711 static CMutex mutex; local
797 static CMutex mutex; local
/hardware/ti/omap3/omx/system/src/openmax_il/omx_core/src/
H A DOMX_Core.c44 so all changes to count should be mutex protected */
46 static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; variable
122 if(pthread_mutex_lock(&mutex) != 0)
136 if(pthread_mutex_unlock(&mutex) != 0)
177 if(pthread_mutex_lock(&mutex) != 0)
308 if(pthread_mutex_unlock(&mutex) != 0)
338 if(pthread_mutex_lock(&mutex) != 0)
388 if(pthread_mutex_unlock(&mutex) != 0)
411 if(pthread_mutex_lock(&mutex) != 0) {
422 if(pthread_mutex_unlock(&mutex) !
[all...]
/hardware/samsung_slsi/exynos5/mobicore/daemon/Daemon/
H A DMobiCoreDriverDaemon.cpp701 static CMutex mutex; local
709 mutex.lock();
787 mutex.unlock();
/hardware/ti/omap3/omx/system/src/openmax_il/lcml/inc/
H A DLCML_DspCodec.h288 pthread_mutex_t mutex; member in struct:LCML_DSP_INTERFACE
/hardware/ti/omap4xxx/domx/omx_core/src/
H A DOMX_Core.c73 pthread_mutex_t mutex; variable
146 pthread_mutex_init(&mutex, NULL);
198 if (pthread_mutex_lock(&mutex) != 0)
332 if (pthread_mutex_unlock(&mutex) != 0)
362 if (pthread_mutex_lock(&mutex) != 0)
396 if (pthread_mutex_unlock(&mutex) != 0)
432 if (pthread_mutex_lock(&mutex) != 0)
437 if (pthread_mutex_unlock(&mutex) != 0)
439 if (pthread_mutex_destroy(&mutex) != 0)
445 if (pthread_mutex_unlock(&mutex) !
[all...]

Completed in 6987 milliseconds

12