/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vpx_ports/ |
H A D | vpx_once.h | 21 static CRITICAL_SECTION *lock; local 24 void *lock_ptr = &lock; 28 * lock. 35 /* Get a lock. We create one and try to make it the one-true-lock, 50 /* At this point, we have a lock that can be synchronized on. We don't 54 EnterCriticalSection(lock); 62 LeaveCriticalSection(lock); 69 DeleteCriticalSection(lock); 70 free(lock); 80 static pthread_once_t lock = PTHREAD_ONCE_INIT; local [all...] |
/hardware/intel/common/wrs_omxil_core/utils/src/ |
H A D | thread.cpp | 27 pthread_mutex_init(&lock, NULL); 35 pthread_mutex_init(&lock, NULL); 42 pthread_mutex_destroy(&lock); 49 pthread_mutex_lock(&lock); 55 pthread_mutex_unlock(&lock); 64 pthread_mutex_lock(&lock); 69 pthread_mutex_unlock(&lock);
|
/hardware/libhardware_legacy/include/hardware_legacy/ |
H A D | power.h | 31 // while you have a lock held, the device will stay on at least at the 33 int acquire_wake_lock(int lock, const char* id);
|
/hardware/qcom/camera/QCamera2/HAL/ |
H A D | QCameraParametersIntf.cpp | 56 Mutex::Autolock lock(mLock); 67 Mutex::Autolock lock(mLock); 81 Mutex::Autolock lock(mLock); 88 Mutex::Autolock lock(mLock); 95 Mutex::Autolock lock(mLock); 102 Mutex::Autolock lock(mLock); 109 Mutex::Autolock lock(mLock); 116 Mutex::Autolock lock(mLock); 124 Mutex::Autolock lock(mLock); 132 Mutex::Autolock lock(mLoc [all...] |
/hardware/qcom/camera/QCamera2/HAL3/ |
H A D | QCamera3StreamMem.cpp | 84 Mutex::Autolock lock(mLock); 121 Mutex::Autolock lock(mLock); 141 Mutex::Autolock lock(mLock); 163 Mutex::Autolock lock(mLock); 185 Mutex::Autolock lock(mLock); 234 Mutex::Autolock lock(mLock); 254 Mutex::Autolock lock(mLock); 278 Mutex::Autolock lock(mLock); 297 Mutex::Autolock lock(mLock); 314 Mutex::Autolock lock(mLoc [all...] |
/hardware/qcom/camera/QCamera2/stack/mm-jpeg-interface/inc/ |
H A D | mm_jpeg_inlines.h | 63 pthread_mutex_lock(&my_obj->clnt_mgr[client_idx].lock); 65 pthread_mutex_unlock(&my_obj->clnt_mgr[client_idx].lock); 88 pthread_mutex_lock(&my_obj->clnt_mgr[client_idx].lock); 93 pthread_mutex_unlock(&my_obj->clnt_mgr[client_idx].lock); 96 pthread_mutex_unlock(&my_obj->clnt_mgr[client_idx].lock); 120 pthread_mutex_lock(&my_obj->clnt_mgr[client_idx].lock); 122 pthread_mutex_unlock(&my_obj->clnt_mgr[client_idx].lock);
|
/hardware/qcom/camera/QCamera2/stack/common/ |
H A D | cam_queue.h | 44 pthread_mutex_t lock; member in struct:__anon2272 49 pthread_mutex_init(&queue->lock, NULL); 66 pthread_mutex_lock(&queue->lock); 69 pthread_mutex_unlock(&queue->lock); 81 pthread_mutex_lock(&queue->lock); 89 pthread_mutex_unlock(&queue->lock); 105 pthread_mutex_lock(&queue->lock); 125 pthread_mutex_unlock(&queue->lock); 132 pthread_mutex_destroy(&queue->lock);
|
/hardware/qcom/camera/QCamera2/stack/mm-jpeg-interface/src/ |
H A D | mm_jpeg_queue.c | 39 pthread_mutex_init(&queue->lock, NULL); 57 pthread_mutex_lock(&queue->lock); 60 pthread_mutex_unlock(&queue->lock); 83 pthread_mutex_lock(&queue->lock); 86 pthread_mutex_unlock(&queue->lock); 100 pthread_mutex_lock(&queue->lock); 108 pthread_mutex_unlock(&queue->lock); 122 pthread_mutex_lock(&queue->lock); 124 pthread_mutex_unlock(&queue->lock); 133 pthread_mutex_destroy(&queue->lock); [all...] |
/hardware/qcom/display/msm8960/libgenlock/ |
H A D | genlock.cpp | 48 /* Internal function to map the userspace locks to the kernel lock types */ 52 // If the user sets both a read and write lock, higher preference is 53 // given to the write lock. 66 /* Internal function to perform the actual lock/unlock operations */ 80 ALOGE("%s: the lock has not been created," 85 genlock_lock lock; local 86 lock.op = lockType; 87 lock.flags = flags; 88 lock.timeout = timeout; 89 lock 162 genlock_lock lock; local 247 genlock_lock lock; local 339 genlock_lock lock; local [all...] |
/hardware/libhardware/modules/gralloc/ |
H A D | gr.h | 51 inline Autolock(Locker& locker) : locker(locker) { locker.lock(); } 56 inline void lock() { pthread_mutex_lock(&mutex); } function in class:Locker
|
/hardware/ti/omap4-aah/camera/inc/ |
H A D | BufferSourceAdapter.h | 48 android::AutoMutex lock(mReturnFrameMutex); 54 android::AutoMutex lock(mReturnFrameMutex); 58 android::AutoMutex lock(mReturnFrameMutex); 66 android::AutoMutex lock(mReturnFrameMutex); 72 android::AutoMutex lock(mReturnFrameMutex); 102 android::AutoMutex lock(mFramesMutex); 112 android::AutoMutex lock(mFramesMutex); 125 android::AutoMutex lock(mFramesMutex);
|
/hardware/intel/common/wrs_omxil_core/utils/inc/ |
H A D | thread.h | 55 pthread_mutex_t lock; member in class:Thread
|
/hardware/qcom/gps/msm8909/utils/ |
H A D | LocSharedLock.h | 37 // one client who need to share the same lock, but it is not predictable 38 // which of these clients is to last to go away. This shared lock deletes 40 // this share lock's share() method has to be called, so that the obj 49 // following client(s) are to *share()* this lock created by the first client 51 // whe a client no longer needs this shared lock, drop() shall be called. 53 // locking the lock to enter critical section 54 inline void lock() { pthread_mutex_lock(&mMutex); } function in class:LocSharedLock 55 // unlocking the lock to leave the critical section
|
/hardware/qcom/gps/msm8996/utils/ |
H A D | LocSharedLock.h | 36 // one client who need to share the same lock, but it is not predictable 37 // which of these clients is to last to go away. This shared lock deletes 39 // this share lock's share() method has to be called, so that the obj 48 // following client(s) are to *share()* this lock created by the first client 50 // whe a client no longer needs this shared lock, drop() shall be called. 52 // locking the lock to enter critical section 53 inline void lock() { pthread_mutex_lock(&mMutex); } function in class:LocSharedLock 54 // unlocking the lock to leave the critical section
|
/hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/ |
H A D | loc_api_sync_call.c | 88 pthread_mutex_init(&slot->lock, NULL); 133 pthread_mutex_lock(&slot->lock); 137 pthread_mutex_unlock(&slot->lock); 140 pthread_mutex_destroy(&slot->lock); 205 pthread_mutex_lock(&slot->lock); 220 pthread_mutex_unlock(&slot->lock); 226 pthread_mutex_unlock(&slot->lock); 255 if (pthread_mutex_trylock(&slot->lock) == EBUSY) 270 pthread_mutex_unlock(&slot->lock); 295 pthread_mutex_unlock(&loc_sync_data.slots[select_id].lock); [all...] |
/hardware/qcom/gps/msm8084/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/ |
H A D | loc_api_sync_call.c | 88 pthread_mutex_init(&slot->lock, NULL); 133 pthread_mutex_lock(&slot->lock); 137 pthread_mutex_unlock(&slot->lock); 140 pthread_mutex_destroy(&slot->lock); 205 pthread_mutex_lock(&slot->lock); 220 pthread_mutex_unlock(&slot->lock); 226 pthread_mutex_unlock(&slot->lock); 255 if (pthread_mutex_trylock(&slot->lock) == EBUSY) 270 pthread_mutex_unlock(&slot->lock); 295 pthread_mutex_unlock(&loc_sync_data.slots[select_id].lock); [all...] |
/hardware/qcom/gps/msm8909/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/ |
H A D | loc_api_sync_call.c | 88 pthread_mutex_init(&slot->lock, NULL); 133 pthread_mutex_lock(&slot->lock); 137 pthread_mutex_unlock(&slot->lock); 140 pthread_mutex_destroy(&slot->lock); 205 pthread_mutex_lock(&slot->lock); 220 pthread_mutex_unlock(&slot->lock); 226 pthread_mutex_unlock(&slot->lock); 255 if (pthread_mutex_trylock(&slot->lock) == EBUSY) 270 pthread_mutex_unlock(&slot->lock); 295 pthread_mutex_unlock(&loc_sync_data.slots[select_id].lock); [all...] |
/hardware/qcom/gps/msm8994/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/ |
H A D | loc_api_sync_call.c | 88 pthread_mutex_init(&slot->lock, NULL); 133 pthread_mutex_lock(&slot->lock); 137 pthread_mutex_unlock(&slot->lock); 140 pthread_mutex_destroy(&slot->lock); 205 pthread_mutex_lock(&slot->lock); 220 pthread_mutex_unlock(&slot->lock); 226 pthread_mutex_unlock(&slot->lock); 255 if (pthread_mutex_trylock(&slot->lock) == EBUSY) 270 pthread_mutex_unlock(&slot->lock); 295 pthread_mutex_unlock(&loc_sync_data.slots[select_id].lock); [all...] |
/hardware/qcom/gps/msm8996/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/ |
H A D | loc_api_sync_call.c | 88 pthread_mutex_init(&slot->lock, NULL); 133 pthread_mutex_lock(&slot->lock); 137 pthread_mutex_unlock(&slot->lock); 140 pthread_mutex_destroy(&slot->lock); 205 pthread_mutex_lock(&slot->lock); 220 pthread_mutex_unlock(&slot->lock); 226 pthread_mutex_unlock(&slot->lock); 255 if (pthread_mutex_trylock(&slot->lock) == EBUSY) 270 pthread_mutex_unlock(&slot->lock); 295 pthread_mutex_unlock(&loc_sync_data.slots[select_id].lock); [all...] |
/hardware/qcom/display/msm8996/sdm/include/utils/ |
H A D | locker.h | 32 #define SCOPE_LOCK(locker) Locker::ScopeLock lock(locker) 33 #define SEQUENCE_ENTRY_SCOPE_LOCK(locker) Locker::SequenceEntryScopeLock lock(locker) 34 #define SEQUENCE_EXIT_SCOPE_LOCK(locker) Locker::SequenceExitScopeLock lock(locker) 35 #define SEQUENCE_WAIT_SCOPE_LOCK(locker) Locker::SequenceWaitScopeLock lock(locker) 36 #define SEQUENCE_CANCEL_SCOPE_LOCK(locker) Locker::SequenceCancelScopeLock lock(locker)
|
/hardware/bsp/intel/peripheral/audio/generic/ |
H A D | audio_hal.c | 78 pthread_mutex_t lock; /* see note below on mutex acquisition order */ member in struct:audio_device 97 pthread_mutex_t lock; /* see note below on mutex acquisition order */ member in struct:stream_out 98 pthread_mutex_t pre_lock; /* acquire before lock to avoid DOS by playback thread */ 101 struct audio_device *dev; /* hardware information - only using this for the lock */ 122 pthread_mutex_t lock; /* see note below on mutex acquisition order */ member in struct:stream_in 123 pthread_mutex_t pre_lock; /* acquire before lock to avoid DOS by capture thread */ 126 struct audio_device *dev; /* hardware information - only using this for the lock */ 148 * stream pre_lock is always acquired before stream lock to prevent starvation of control thread by 328 pthread_mutex_lock(&in->lock); 335 pthread_mutex_lock(&out->lock); [all...] |
/hardware/libhardware/modules/usbaudio/ |
H A D | audio_hal.c | 64 pthread_mutex_t lock; /* see note below on mutex acquisition order */ member in struct:audio_device 72 /* lock input & output sample rates */ 84 pthread_mutex_t lock; /* see note below on mutex acquisition order */ member in struct:stream_out 85 pthread_mutex_t pre_lock; /* acquire before lock to avoid DOS by playback thread */ 88 struct audio_device *dev; /* hardware information - only using this for the lock */ 109 pthread_mutex_t lock; /* see note below on mutex acquisition order */ member in struct:stream_in 110 pthread_mutex_t pre_lock; /* acquire before lock to avoid DOS by capture thread */ 113 struct audio_device *dev; /* hardware information - only using this for the lock */ 135 * stream pre_lock is always acquired before stream lock to prevent starvation of control thread by 220 pthread_mutex_lock(&in->lock); [all...] |
/hardware/intel/common/libmix/mix_video/src/ |
H A D | mixframemanager.c | 31 self->lock = g_mutex_new(); 73 if (fm->lock) { 74 g_mutex_free(fm->lock); 75 fm->lock = NULL; 111 if (!fm->lock) { 112 fm->lock = g_mutex_new(); 113 if (!fm->lock) { 163 if (!fm->lock) { 173 g_mutex_lock(fm->lock); 186 g_mutex_unlock(fm->lock); [all...] |
/hardware/broadcom/wlan/bcmdhd/wifi_hal/ |
H A D | sync.h | 21 int lock() { function in class:Mutex
|
/hardware/qcom/display/msm8084/libgralloc/ |
H A D | fb_priv.h | 45 pthread_mutex_t lock; member in struct:private_module_t
|