/device/generic/goldfish-opengl/shared/OpenglCodecCommon/ |
D | PortableMutex.h | 38 static __inline__ void mutex_lock(mutex_t* lock) { in mutex_lock() argument 39 pthread_mutex_lock(lock); in mutex_lock() 42 static __inline__ void mutex_unlock(mutex_t* lock) { in mutex_unlock() argument 43 pthread_mutex_unlock(lock); in mutex_unlock() 46 static __inline__ int mutex_init(mutex_t* lock) { in mutex_init() argument 47 return pthread_mutex_init(lock, NULL); in mutex_init() 50 static __inline__ void mutex_destroy(mutex_t* lock) { in mutex_destroy() argument 51 pthread_mutex_destroy(lock); in mutex_destroy() 58 CRITICAL_SECTION lock[1]; 63 static __inline__ void mutex_lock(mutex_t* lock) { [all …]
|
/device/generic/goldfish-opengl/android-emu/aemu/base/synchronization/ |
D | AndroidConditionVariable.h | 45 void signalAndUnlock(StaticLock<IsRecursive>* lock); 48 void signalAndUnlock(AutoLock<Lockable>* lock); 51 void broadcastAndUnlock(StaticLock<IsRecursive>* lock); 54 void broadcastAndUnlock(AutoLock<Lockable>* lock); 81 void wait(StaticLock<IsRecursive>* lock, Predicate pred) { in wait() argument 83 this->wait(lock); in wait() 88 void wait(AutoLock<Lockable>* lock, Predicate pred) { in wait() argument 89 this->wait(&lock->mLock, pred); in wait() 187 inline void ConditionVariable::signalAndUnlock(StaticLock<IsRecursive>* lock) { in signalAndUnlock() argument 188 lock->unlock(); in signalAndUnlock() [all …]
|
D | AndroidMessageChannel.cpp | 24 AutoLock<Lock> lock(mLock); in size() local 29 android::base::guest::AutoLock<Lock> lock(mLock); in stop() local 33 mCanWrite.broadcastAndUnlock(&lock); in stop() 37 AutoLock<Lock> lock(mLock); in isStopped() local 42 AutoLock<Lock> lock(mLock); in waitForEmpty() local 44 mCanWrite.wait(&lock); in waitForEmpty() 49 mLock.lock(); in beforeWrite() 63 mLock.lock(); in beforeTryWrite() 83 mLock.lock(); in beforeRead() 91 mLock.lock(); in beforeTryRead() [all …]
|
D | AndroidLock.h | 60 void lock() { in lock() function 126 void lock() { in lock() function 239 AutoLock(Lockable& lock) : mLock(lock) { mLock.lock(); } in AutoLock() argument 245 void lock() { in lock() function 247 mLock.lock(); in lock() 276 AutoWriteLock(ReadWriteLock& lock) : mLock(lock) { mLock.lockWrite(); } in AutoWriteLock() argument 305 AutoReadLock(ReadWriteLock& lock) : mLock(lock) { mLock.lockRead(); } in AutoReadLock() argument
|
/device/generic/car/emulator/audio/driver/ |
D | audio_hw.c | 104 static pthread_mutex_t lock = PTHREAD_MUTEX_INITIALIZER; variable 163 pthread_mutex_lock(&lock); in get_audio_device() 166 pthread_mutex_unlock(&lock); in get_audio_device() 171 pthread_mutex_unlock(&lock); in get_audio_device() 184 pthread_mutex_lock(&out->lock); in set_device_address_is_ducked() 186 pthread_mutex_unlock(&out->lock); in set_device_address_is_ducked() 197 pthread_mutex_lock(&out->lock); in set_device_address_is_muted() 199 pthread_mutex_unlock(&out->lock); in set_device_address_is_muted() 248 pthread_mutex_lock(&adev->lock); in is_zone_selected_to_play() 250 pthread_mutex_unlock(&adev->lock); in is_zone_selected_to_play() [all …]
|
D | audio_vbuffer.c | 45 pthread_mutex_init(&audio_vbuffer->lock, (const pthread_mutexattr_t *)NULL); in audio_vbuffer_init() 54 pthread_mutex_destroy(&audio_vbuffer->lock); in audio_vbuffer_destroy() 62 pthread_mutex_lock(&audio_vbuffer->lock); in audio_vbuffer_live() 64 pthread_mutex_unlock(&audio_vbuffer->lock); in audio_vbuffer_live() 72 pthread_mutex_lock(&audio_vbuffer->lock); in audio_vbuffer_dead() 74 pthread_mutex_unlock(&audio_vbuffer->lock); in audio_vbuffer_dead() 81 pthread_mutex_lock(&audio_vbuffer->lock); in audio_vbuffer_write() 105 pthread_mutex_unlock(&audio_vbuffer->lock); in audio_vbuffer_write() 112 pthread_mutex_lock(&audio_vbuffer->lock); in audio_vbuffer_read() 136 pthread_mutex_unlock(&audio_vbuffer->lock); in audio_vbuffer_read()
|
/device/generic/goldfish-opengl/system/vulkan_enc/ |
D | vulkan_enc_unittests.cpp | 155 Lock lock; in TEST() local 163 [&lock, &cv, &x] { in TEST() 164 AutoLock l(lock); in TEST() 166 cv.wait(&lock); in TEST() 174 tasks2.push_back([&lock, &cv, &x] { in TEST() 175 AutoLock l(lock); in TEST() 193 Lock lock; in TEST() local 198 [&lock, &cv, &x] { in TEST() 199 AutoLock l(lock); in TEST() 201 cv.wait(&lock); in TEST() [all …]
|
/device/generic/vulkan-cereal/stream-servers/ |
D | RenderThread.cpp | 127 AutoLock lock(mLock); in pausePreSnapshot() local 137 mCondVar.broadcastAndUnlock(&lock); in pausePreSnapshot() 142 AutoLock lock(mLock); in resume() local 149 waitForSnapshotCompletion(&lock); in resume() 154 mCondVar.broadcastAndUnlock(&lock); in resume() 160 AutoLock lock(mLock); in save() local 164 waitForSnapshotCompletion(&lock); in save() 177 void RenderThread::waitForSnapshotCompletion(AutoLock* lock) { in waitForSnapshotCompletion() argument 180 mCondVar.wait(lock); in waitForSnapshotCompletion() 185 void RenderThread::snapshotOperation(AutoLock* lock, OpImpl&& implFunc) { in snapshotOperation() argument [all …]
|
D | RenderChannelImpl.cpp | 76 AutoLock lock(mLock); in setWantedEvents() local 82 AutoLock lock(mLock); in state() local 88 AutoLock lock(mLock); in tryWrite() local 98 AutoLock lock(mLock); in tryRead() local 108 AutoLock lock(mLock); in readBefore() local 118 AutoLock lock(mLock); in stop() local 126 AutoLock lock(mLock); in writeToGuest() local 136 AutoLock lock(mLock); in readFromGuest() local 154 AutoLock lock(mLock); in stopFromHost() local 163 AutoLock lock(mLock); in isStopped() local [all …]
|
D | StalePtrRegistry.h | 38 android::base::AutoWriteLock lock(mLock); in addPtr() 43 android::base::AutoWriteLock lock(mLock); in removePtr() 49 android::base::AutoWriteLock lock(mLock); in remapStalePtr() 55 android::base::AutoReadLock lock(mLock); 67 lock.unlockRead(); 76 android::base::AutoWriteLock lock(mLock); in makeCurrentPtrsStale() 92 android::base::AutoReadLock lock(mLock); in onSave() 102 android::base::AutoWriteLock lock(mLock); in onLoad() 133 android::base::AutoReadLock lock(mLock); in countWithStaleness()
|
D | RenderThreadInfo.cpp | 33 Lock lock; member 41 AutoLock lock(sRegistry.lock); in RenderThreadInfo() local 47 AutoLock lock(sRegistry.lock); in ~RenderThreadInfo() local 57 AutoLock lock(sRegistry.lock); in forAllRenderThreadInfos() local
|
/device/generic/goldfish/audio/ |
D | ring_buffer.cpp | 36 std::unique_lock<std::mutex> lock(mMutex); in availableToConsume() local 41 std::unique_lock<std::mutex> lock(mMutex); in makeRoomForProduce() local 55 std::unique_lock<std::mutex> lock(mMutex); in waitForProduceAvailable() local 59 } else if (mProduceAvailable.wait_until(lock, blockUntil) == std::cv_status::timeout) { in waitForProduceAvailable() 66 std::unique_lock<std::mutex> lock(mMutex); in getProduceChunk() local 80 std::unique_lock<std::mutex> lock(mMutex); in produce() local 92 std::unique_lock<std::mutex> lock(mMutex); in produce() local 116 std::unique_lock<std::mutex> lock(mMutex); in waitForConsumeAvailable() local 120 } else if (mConsumeAvailable.wait_until(lock, blockUntil) == std::cv_status::timeout) { in waitForConsumeAvailable() 127 std::unique_lock<std::mutex> lock(mMutex); in getConsumeChunk() local [all …]
|
/device/generic/vulkan-cereal/stream-servers/gl/glestranslator/GLcommon/ |
D | ShareGroup.cpp | 49 ObjectDataAutoLock lock(this); in ShareGroup() local 71 ObjectDataAutoLock lock(this); in preSave() local 80 ObjectDataAutoLock lock(this); in onSave() local 108 android::base::AutoLock lock(m_restoreLock); in postLoadRestore() local 141 android::base::AutoLock lock(m_namespaceLock); in ~ShareGroup() local 160 android::base::AutoLock lock(m_namespaceLock); in genName() local 189 android::base::AutoLock lock(m_namespaceLock); in getGlobalName() local 202 android::base::AutoLock lock(m_namespaceLock); in getLocalName() local 213 android::base::AutoLock lock(m_namespaceLock); in getNamedObject() local 225 android::base::AutoLock lock(m_namespaceLock); in deleteName() local [all …]
|
/device/google/contexthub/firmware/os/core/ |
D | trylock.c | 21 void trylockInit(struct TryLock *lock) in trylockInit() argument 23 lock->lock = 0; in trylockInit() 26 void trylockRelease(struct TryLock *lock) in trylockRelease() argument 28 lock->lock = 0; in trylockRelease() 31 bool trylockTryTake(struct TryLock *lock) in trylockTryTake() argument 33 return !atomicXchgByte(&lock->lock, 1); in trylockTryTake()
|
/device/generic/vulkan-cereal/gl-host-common/opengl/ |
D | GLProcessPipe.cpp | 33 Lock lock; member 40 AutoLock lock(sRegistry.lock); in sIdExistsInRegistry() local 99 AutoLock lock(sRegistry.lock); in GLProcessPipe() local 105 AutoLock lock(sRegistry.lock); in ~GLProcessPipe() local 172 AutoLock lock(sRegistry.lock); in forEachProcessPipeId() local 179 AutoLock lock(sRegistry.lock); in forEachProcessPipeIdRunAndErase() local
|
/device/generic/goldfish/gnss/ |
D | Gnss.cpp | 61 std::lock_guard<std::mutex> lock(mMtx); in setCallback() local 70 std::lock_guard<std::mutex> lock(mMtx); in close() local 141 std::lock_guard<std::mutex> lock(mMtx); in start() local 153 std::lock_guard<std::mutex> lock(mMtx); in start() local 168 std::lock_guard<std::mutex> lock(mMtx); in stop() local 207 std::lock_guard<std::mutex> lock(mMtx); in setPositionMode() local 232 std::lock_guard<std::mutex> lock(mMtx); in startSvStatus() local 238 std::lock_guard<std::mutex> lock(mMtx); in stopSvStatus() local 244 std::lock_guard<std::mutex> lock(mMtx); in startNmea() local 250 std::lock_guard<std::mutex> lock(mMtx); in stopNmea() local [all …]
|
/device/generic/goldfish-opengl/system/hwc3/ |
D | ComposerClient.cpp | 109 std::unique_lock<std::mutex> lock(mStateMutex); in ~ComposerClient() local 123 std::unique_lock<std::mutex> lock(mStateMutex); in init() local 173 std::unique_lock<std::mutex> lock(mStateMutex); in createLayer() local 206 std::unique_lock<std::mutex> lock(mStateMutex); in destroyLayer() local 239 std::unique_lock<std::mutex> lock(mStateMutex); in executeCommands() local 258 std::unique_lock<std::mutex> lock(mStateMutex); in getActiveConfig() local 269 std::unique_lock<std::mutex> lock(mStateMutex); in getColorModes() local 303 std::unique_lock<std::mutex> lock(mStateMutex); in getDisplayAttribute() local 314 std::unique_lock<std::mutex> lock(mStateMutex); in getDisplayCapabilities() local 325 std::unique_lock<std::mutex> lock(mStateMutex); in getDisplayConfigs() local [all …]
|
/device/google/cuttlefish/host/commands/cvd/ |
D | instance_lock.cpp | 104 auto lock = CF_EXPECT(TryAcquireLock(num)); in TryAcquireLocks() local 105 if (lock) { in TryAcquireLocks() 106 locks.emplace(std::move(*lock)); in TryAcquireLocks() 120 auto lock = CF_EXPECT(TryAcquireLock(num)); in LockAllAvailable() local 121 if (!lock) { in LockAllAvailable() 124 auto status = CF_EXPECT(lock->Status()); in LockAllAvailable() 128 acquired_lock_files.emplace_back(std::move(*lock)); in LockAllAvailable() 229 auto lock = CF_EXPECT(TryAcquireLock(num)); in TryAcquireUnusedLock() local 230 if (lock && CF_EXPECT(lock->Status()) == InUseState::kNotInUse) { in TryAcquireUnusedLock() 231 return std::move(*lock); in TryAcquireUnusedLock()
|
D | instance_manager.cpp | 78 std::lock_guard lock(instance_db_mutex_); in Serialize() local 85 std::lock_guard lock(instance_db_mutex_); in LoadFromJson() local 96 std::unique_lock lock(instance_db_mutex_); in Analyze() local 98 lock.unlock(); in Analyze() 114 std::unique_lock lock(instance_db_mutex_); in SelectGroup() local 131 std::unique_lock lock(instance_db_mutex_); in SelectInstance() local 140 std::lock_guard lock(instance_db_mutex_); in HasInstanceGroups() local 372 auto lock = lock_manager_.TryAcquireLock(instance->InstanceId()); in IssueStopCommand() local 373 if (lock.ok() && (*lock)) { in IssueStopCommand() 374 (*lock)->Status(InUseState::kNotInUse); in IssueStopCommand() [all …]
|
/device/generic/vulkan-cereal/stream-servers/gl/ |
D | ReadbackWorkerGl.cpp | 60 android::base::AutoLock lock(mLock); in initReadbackForDisplay() local 79 android::base::AutoLock lock(mLock); in deinitReadbackForDisplay() local 134 android::base::AutoLock lock(mLock); in doNextReadback() local 176 lock.unlock(); in doNextReadback() 186 android::base::AutoLock lock(mLock); in flushPipeline() local 225 android::base::AutoLock lock(mLock); in getPixels() local 234 lock.unlock(); in getPixels() 242 lock.lock(); in getPixels() 244 lock.unlock(); in getPixels()
|
/device/google/cuttlefish/host/frontend/webrtc/libdevice/ |
D | server_connection.cpp | 182 std::lock_guard<std::mutex> lock(write_mtx_); in Send() local 203 if (auto o = observer_.lock(); o) { in Connect() 212 if (auto o = observer_.lock(); o) { in Connect() 217 if (auto o = observer_.lock(); o) { in Connect() 274 if (auto observer = observer_.lock(); observer) { in ReadLoop() 280 auto observer = observer_.lock(); in ReadLoop() 286 auto observer = observer_.lock(); in ReadLoop() 385 std::lock_guard<std::mutex> lock(map_mutex_); in GetConnection() local 389 connection = weak_by_ptr_[raw].lock(); in GetConnection() 399 std::lock_guard<std::mutex> lock(map_mutex_); in RememberConnection() local [all …]
|
/device/amlogic/yukawa/hal/audio/ |
D | audio_hw.c | 307 pthread_mutex_lock(&out->dev->lock); in out_standby() 308 pthread_mutex_lock(&out->lock); in out_standby() 310 pthread_mutex_unlock(&out->lock); in out_standby() 311 pthread_mutex_unlock(&out->dev->lock); in out_standby() 335 pthread_mutex_lock(&adev->lock); in out_set_parameters() 336 pthread_mutex_lock(&out->lock); in out_set_parameters() 341 pthread_mutex_unlock(&out->lock); in out_set_parameters() 342 pthread_mutex_unlock(&adev->lock); in out_set_parameters() 384 pthread_mutex_lock(&adev->lock); in out_write() 385 pthread_mutex_lock(&out->lock); in out_write() [all …]
|
/device/linaro/dragonboard/audio/ |
D | audio_hw.c | 281 pthread_mutex_lock(&out->dev->lock); in out_standby() 282 pthread_mutex_lock(&out->lock); in out_standby() 284 pthread_mutex_unlock(&out->lock); in out_standby() 285 pthread_mutex_unlock(&out->dev->lock); in out_standby() 309 pthread_mutex_lock(&adev->lock); in out_set_parameters() 310 pthread_mutex_lock(&out->lock); in out_set_parameters() 315 pthread_mutex_unlock(&out->lock); in out_set_parameters() 316 pthread_mutex_unlock(&adev->lock); in out_set_parameters() 358 pthread_mutex_lock(&adev->lock); in out_write() 359 pthread_mutex_lock(&out->lock); in out_write() [all …]
|
/device/generic/goldfish-opengl/system/gralloc/ |
D | gralloc_old.cpp | 209 pthread_mutex_t lock; member 217 pthread_mutex_init(&lock, NULL); in gralloc_memregions_t() 221 pthread_mutex_t lock; member 233 pthread_mutex_init(&lock, NULL); in gralloc_dmaregion_t() 247 pthread_mutex_t lock; member 277 pthread_mutex_lock(&grdma->lock); in get_gralloc_region() 280 pthread_mutex_unlock(&grdma->lock); in get_gralloc_region() 324 pthread_mutex_lock(&grdma->lock); in put_gralloc_region() 332 pthread_mutex_unlock(&grdma->lock); in put_gralloc_region() 366 pthread_mutex_lock(&grdma->lock); in gralloc_dmaregion_register_ashmem() [all …]
|
/device/generic/goldfish-opengl/android-emu/aemu/base/threads/ |
D | AndroidWorkPool.cpp | 83 AutoLock<Lock> lock(mLock); in decrementBroadcast() local 214 AutoLock<Lock> lock(mLock); in acquire() local 227 AutoLock<Lock> lock(mLock); in run() local 251 AutoLock<Lock> lock(mLock); in shouldCleanupWaitGroup() local 272 AutoLock<Lock> lock(mLock); in exit() local 289 AutoLock<Lock> lock(mLock); in threadFunc() local 294 AutoLock<Lock> lock(mLock); in threadFunc() local 310 AutoLock<Lock> lock(mLock); in doRun() local 343 AutoLock<Lock> lock(mLock); in schedule() local 385 AutoLock<Lock> lock(mLock); in waitAny() local [all …]
|