/hardware/qcom/camera/QCamera2/stack/common/ |
H A D | cam_semaphore.h | 40 /* Implement semaphore with mutex and conditional variable. 47 pthread_mutex_t mutex; member in struct:__anon2273 53 pthread_mutex_init(&(s->mutex), NULL); 60 pthread_mutex_lock(&(s->mutex)); 63 pthread_mutex_unlock(&(s->mutex)); 69 pthread_mutex_lock(&(s->mutex)); 71 rc = pthread_cond_wait(&(s->cond), &(s->mutex)); 73 pthread_mutex_unlock(&(s->mutex)); 79 pthread_mutex_destroy(&(s->mutex));
|
/hardware/intel/common/libwsbm/src/ |
H A D | wsbm_driver.c | 51 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 D | wsbm_userpool.c | 63 /* 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...] |
H A D | wsbm_slabpool.c | 88 * Protected by struct _WsbmSlabSizeHeader::mutex 94 * Protected by this::mutex 118 * Protected by struct _WsbmSlabCache::mutex 148 * Protected by this::mutex 155 struct _WsbmMutex mutex; member in struct:_WsbmSlabSizeHeader 166 struct _WsbmMutex mutex; member in struct:_WsbmSlabCache 175 * initialization and thus needs no mutex protection. 291 WSBM_MUTEX_LOCK(&cache->mutex); 303 WSBM_MUTEX_UNLOCK(&cache->mutex); 330 WSBM_MUTEX_LOCK(&cache->mutex); [all...] |
/hardware/libhardware/modules/gralloc/ |
H A D | gr.h | 46 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/invensense/6515/libsensors_iio/software/core/mllite/linux/ |
H A D | mlos_linux.c | 68 * @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 D | mlos.h | 53 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/ |
H A D | mlos_linux.c | 68 * @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 D | mlos.h | 53 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/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/decoder/ |
H A D | vp9_thread.h | 69 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 D | gr.h | 65 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/msm8974/mm-video-legacy/vidc/venc/test/ |
H A D | queue.c | 79 /* 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/msm8974/mm-video-legacy/vidc/vdec/src/ |
H A D | message_queue.c | 79 /* 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/msm8974/mm-video-v4l2/vidc/vdec/src/ |
H A D | message_queue.c | 73 /* 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/media/msm8996/mm-video-v4l2/vidc/vdec/src/ |
H A D | message_queue.c | 73 /* 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/ti/omap4-aah/domx/mm_osal/src/ |
H A D | timm_osal_events.c | 69 pthread_mutex_t mutex; member in struct:__anon5447 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 D | timm_osal_events.c | 69 pthread_mutex_t mutex; member in struct:__anon5567 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 D | gr.h | 77 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 D | gr.h | 77 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/msm8909/libgralloc/ |
H A D | gr.h | 77 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/msm8994/libgralloc/ |
H A D | gr.h | 84 pthread_mutex_t mutex; member in class:Locker 94 pthread_mutex_init(&mutex, 0); 98 pthread_mutex_destroy(&mutex); 101 inline void lock() { pthread_mutex_lock(&mutex); } 102 inline void wait() { pthread_cond_wait(&cond, &mutex); } 103 inline void unlock() { pthread_mutex_unlock(&mutex); }
|
/hardware/qcom/display/msm8996/libgralloc/ |
H A D | gr.h | 85 pthread_mutex_t mutex; member in class:Locker 95 pthread_mutex_init(&mutex, 0); 99 pthread_mutex_destroy(&mutex); 102 inline void lock() { pthread_mutex_lock(&mutex); } 103 inline void wait() { pthread_cond_wait(&cond, &mutex); } 104 inline void unlock() { pthread_mutex_unlock(&mutex); }
|
/hardware/libhardware/modules/sensors/ |
H A D | SensorEventQueue.h | 30 * 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);
|
/hardware/libhardware/modules/sensors/tests/ |
H A D | SensorEventQueue_test.cpp | 98 static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; variable 113 pthread_mutex_lock(&mutex); 114 if (queue->waitForSpace(&mutex)) { 125 pthread_mutex_unlock(&mutex); 148 pthread_mutex_lock(&mutex); 152 pthread_cond_wait(&dataAvailableCond, &mutex); 157 pthread_mutex_unlock(&mutex);
|
/hardware/qcom/media/msm8974/mm-video-legacy/vidc/vdec/inc/ |
H A D | message_queue.h | 53 pthread_mutex_t mutex; member in struct:video_queue_context
|