Home
last modified time | relevance | path

Searched refs:lock (Results 1 – 25 of 304) sorted by relevance

12345678910>>...13

/device/generic/goldfish-opengl/shared/OpenglCodecCommon/
DPortableMutex.h38 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/
DAndroidConditionVariable.h45 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 …]
DAndroidMessageChannel.cpp24 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 …]
DAndroidLock.h60 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/
Daudio_hw.c104 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 …]
Daudio_vbuffer.c45 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/
Dvulkan_enc_unittests.cpp155 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/
DRenderThread.cpp127 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 …]
DRenderChannelImpl.cpp76 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 …]
DStalePtrRegistry.h38 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()
DRenderThreadInfo.cpp33 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/
Dring_buffer.cpp36 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/
DShareGroup.cpp49 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/
Dtrylock.c21 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/
DGLProcessPipe.cpp33 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/
DGnss.cpp61 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/
DComposerClient.cpp109 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/
Dinstance_lock.cpp104 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()
Dinstance_manager.cpp78 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/
DReadbackWorkerGl.cpp60 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/
Dserver_connection.cpp182 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/
Daudio_hw.c307 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/
Daudio_hw.c281 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/
Dgralloc_old.cpp209 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/
DAndroidWorkPool.cpp83 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 …]

12345678910>>...13