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

123

/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/intel/common/libwsbm/src/
H A Dwsbm_driver.c51 n_mutexInit(struct _WsbmMutex *mutex, struct _WsbmThreadFuncs *func) argument
53 mutex->func = func;
65 n_mutexNone(struct _WsbmMutex *mutex __attribute__ ((unused)))
77 n_condWait(struct _WsbmCond *cond __attribute__ ((unused)), struct _WsbmMutex *mutex __attribute__ ((unused)))
109 pthread_mutex_t mutex; member in struct:_WsbmPMutex
143 p_mutexInit(struct _WsbmMutex *mutex, struct _WsbmThreadFuncs *func) argument
145 struct _WsbmPMutex *pMutex = pMutexConvert(mutex);
151 pthread_mutex_init(&pMutex->mutex, NULL);
156 p_mutexFree(struct _WsbmMutex *mutex) argument
158 struct _WsbmPMutex *pMutex = pMutexConvert(mutex);
164 p_mutexLock(struct _WsbmMutex *mutex) argument
172 p_mutexUnlock(struct _WsbmMutex *mutex) argument
209 p_condWait(struct _WsbmCond *cond, struct _WsbmMutex *mutex) argument
[all...]
H A Dwsbm_userpool.c63 /* Protected by the pool mutex */
68 /* Protected by the buffer mutex */
99 struct _WsbmMutex mutex; member in struct:_WsbmUserPool
127 WSBM_COND_WAIT(&vBuf->event, &buf->mutex);
134 WSBM_MUTEX_UNLOCK(&buf->mutex);
137 WSBM_MUTEX_LOCK(&buf->mutex);
153 WSBM_MUTEX_UNLOCK(&buf->mutex);
155 WSBM_MUTEX_UNLOCK(&buf->mutex);
174 WSBM_MUTEX_UNLOCK(&p->mutex);
175 WSBM_MUTEX_LOCK(&vBuf->buf.mutex);
[all...]
/hardware/libhardware/modules/gralloc/
H A Dgr.h46 pthread_mutex_t mutex; member in class:Locker
54 inline Locker() { pthread_mutex_init(&mutex, 0); }
55 inline ~Locker() { pthread_mutex_destroy(&mutex); }
56 inline void lock() { pthread_mutex_lock(&mutex); }
57 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
/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...]
/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/6515/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/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/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/decoder/
H A Dvp9_thread.h69 static INLINE int pthread_mutex_init(pthread_mutex_t *const mutex, argument
72 InitializeCriticalSection(mutex);
76 static INLINE int pthread_mutex_trylock(pthread_mutex_t *const mutex) { argument
77 return TryEnterCriticalSection(mutex) ? 0 : EBUSY;
80 static INLINE int pthread_mutex_lock(pthread_mutex_t *const mutex) { argument
81 EnterCriticalSection(mutex);
85 static INLINE int pthread_mutex_unlock(pthread_mutex_t *const mutex) { argument
86 LeaveCriticalSection(mutex);
90 static INLINE int pthread_mutex_destroy(pthread_mutex_t *const mutex) { argument
91 DeleteCriticalSection(mutex);
132 pthread_cond_wait(pthread_cond_t *const condition, pthread_mutex_t *const mutex) argument
[all...]
/hardware/qcom/display/msm8960/libgralloc/
H A Dgr.h65 pthread_mutex_t mutex; member in class:Locker
73 inline Locker() { pthread_mutex_init(&mutex, 0); }
74 inline ~Locker() { pthread_mutex_destroy(&mutex); }
75 inline void lock() { pthread_mutex_lock(&mutex); }
76 inline void unlock() { pthread_mutex_unlock(&mutex); }
/hardware/qcom/display/msm8974/libgralloc/
H A Dgr.h65 pthread_mutex_t mutex; member in class:Locker
73 inline Locker() { pthread_mutex_init(&mutex, 0); }
74 inline ~Locker() { pthread_mutex_destroy(&mutex); }
75 inline void lock() { pthread_mutex_lock(&mutex); }
76 inline void unlock() { pthread_mutex_unlock(&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-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/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/omap4-aah/domx/mm_osal/src/
H A Dtimm_osal_events.c69 pthread_mutex_t mutex; member in struct:__anon3423
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/ti/omap4xxx/domx/mm_osal/src/
H A Dtimm_osal_events.c69 pthread_mutex_t mutex; member in struct:__anon3543
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/qcom/display/msm8084/libgralloc/
H A Dgr.h77 pthread_mutex_t mutex; member in class:Locker
87 pthread_mutex_init(&mutex, 0);
91 pthread_mutex_destroy(&mutex);
94 inline void lock() { pthread_mutex_lock(&mutex); }
95 inline void wait() { pthread_cond_wait(&cond, &mutex); }
96 inline void unlock() { pthread_mutex_unlock(&mutex); }
/hardware/qcom/display/msm8226/libgralloc/
H A Dgr.h77 pthread_mutex_t mutex; member in class:Locker
87 pthread_mutex_init(&mutex, 0);
91 pthread_mutex_destroy(&mutex);
94 inline void lock() { pthread_mutex_lock(&mutex); }
95 inline void wait() { pthread_cond_wait(&cond, &mutex); }
96 inline void unlock() { pthread_mutex_unlock(&mutex); }
/hardware/libhardware/modules/sensors/
H A DSensorEventQueue.h30 * Reading can be done safely after grabbing the mutex lock, while poll() writing in a separate
31 * thread without a mutex lock. But there can only be one writer at a time.
73 bool waitForSpace(pthread_mutex_t* mutex);

Completed in 3486 milliseconds

123