Home
last modified time | relevance | path

Searched refs:mutex (Results 1 – 25 of 357) sorted by relevance

12345678910>>...15

/frameworks/opt/gamesdk/src/swappy/
DSettings.cpp33 std::lock_guard<std::mutex> lock(mMutex); in addListener()
39 std::lock_guard<std::mutex> lock(mMutex); in setRefreshPeriod()
47 std::lock_guard<std::mutex> lock(mMutex); in setSwapIntervalNS()
56 std::lock_guard<std::mutex> lock(mMutex); in setUseAffinity()
65 std::lock_guard<std::mutex> lock(mMutex); in getRefreshPeriod()
70 std::lock_guard<std::mutex> lock(mMutex); in getSwapIntervalNS()
75 std::lock_guard<std::mutex> lock(mMutex); in getUseAffinity()
83 std::lock_guard<std::mutex> lock(mMutex); in notifyListeners()
DChoreographerFilter.cpp111 std::lock_guard<std::mutex> lock(mThreadPoolMutex); in ChoreographerFilter()
117 std::lock_guard<std::mutex> lock(mThreadPoolMutex); in ~ChoreographerFilter()
122 std::unique_lock<std::mutex> lock(mMutex); in onChoreographer()
130 std::lock_guard<std::mutex> lock(mMutex); in launchThreadsLocked()
142 std::lock_guard<std::mutex> lock(mMutex); in terminateThreadsLocked()
155 std::lock_guard<std::mutex> lock(mThreadPoolMutex); in onSettingsChanged()
179 std::unique_lock<std::mutex> lock(mMutex); in threadMain()
199 std::unique_lock<std::mutex> workLock(mWorkMutex); in threadMain()
/frameworks/base/libs/usb/tests/accessorytest/
Daudio.c47 static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; variable
58 pthread_mutex_lock(&mutex); in get_empty()
61 pthread_cond_wait(&empty_cond, &mutex); in get_empty()
71 pthread_mutex_unlock(&mutex); in get_empty()
77 pthread_mutex_lock(&mutex); in put_empty()
85 pthread_mutex_unlock(&mutex); in put_empty()
92 pthread_mutex_lock(&mutex); in get_full()
95 pthread_cond_wait(&full_cond, &mutex); in get_full()
105 pthread_mutex_unlock(&mutex); in get_full()
111 pthread_mutex_lock(&mutex); in put_full()
[all …]
/frameworks/base/cmds/statsd/src/metrics/
DMetricProducer.h110 std::lock_guard<std::mutex> lock(mMutex); in notifyAppUpgrade()
134 std::lock_guard<std::mutex> lock(mMutex); in onMatchedLogEvent()
139 std::lock_guard<std::mutex> lock(mMutex); in onConditionChanged()
144 std::lock_guard<std::mutex> lock(mMutex); in onSlicedConditionMayChange()
149 std::lock_guard<std::mutex> lock(mMutex); in isConditionSliced()
161 std::lock_guard<std::mutex> lock(mMutex); in onDumpReport()
167 std::lock_guard<std::mutex> lock(mMutex); in clearPastBuckets()
172 std::lock_guard<std::mutex> lock(mMutex); in dumpStates()
179 std::lock_guard<std::mutex> lock(mMutex); in byteSize()
186 std::lock_guard<std::mutex> lock(mMutex); in addAnomalyTracker()
[all …]
/frameworks/base/cmds/statsd/src/guardrail/
DStatsdStats.cpp144 lock_guard<std::mutex> lock(mLock); in noteConfigReceived()
182 lock_guard<std::mutex> lock(mLock); in noteConfigRemoved()
194 lock_guard<std::mutex> lock(mLock); in noteConfigReset()
200 lock_guard<std::mutex> lock(mLock); in noteLogLost()
212 lock_guard<std::mutex> lock(mLock); in noteBroadcastSent()
229 lock_guard<std::mutex> lock(mLock); in noteActiveStatusChanged()
248 lock_guard<std::mutex> lock(mLock); in noteActivationBroadcastGuardrailHit()
261 lock_guard<std::mutex> lock(mLock); in noteEventQueueOverflow()
277 lock_guard<std::mutex> lock(mLock); in noteDataDropped()
297 lock_guard<std::mutex> lock(mLock); in noteMetricsReportSent()
[all …]
/frameworks/opt/gamesdk/test/tuningfork/
Dtuningfork_test.cpp45 std::shared_ptr<std::mutex> mutex_) : cv(cv_), mutex(mutex_) {} in TestBackend()
50 std::lock_guard<std::mutex> lock(*mutex); in Process()
63 std::shared_ptr<std::mutex> mutex; member in tuningfork_test::TestBackend
89 std::shared_ptr<std::mutex> rmutex = std::make_shared<std::mutex>();
123 std::unique_lock<std::mutex> lock(*rmutex); in TestEndToEnd()
140 std::unique_lock<std::mutex> lock(*rmutex); in TestEndToEndWithAnnotation()
154 std::unique_lock<std::mutex> lock(*rmutex); in TestEndToEndTimeBased()
169 std::unique_lock<std::mutex> lock(*rmutex); in TestEndToEndWithStaticHistogram()
/frameworks/native/services/vr/hardware_composer/impl/
Dvr_hwc.cpp260 std::unique_lock<std::mutex> lock(mutex_); in registerEventCallback()
278 std::lock_guard<std::mutex> guard(mutex_); in unregisterEventCallback()
295 std::lock_guard<std::mutex> guard(mutex_); in destroyVirtualDisplay()
307 std::lock_guard<std::mutex> guard(mutex_); in createLayer()
318 std::lock_guard<std::mutex> guard(mutex_); in destroyLayer()
328 std::lock_guard<std::mutex> guard(mutex_); in getActiveConfig()
339 std::lock_guard<std::mutex> guard(mutex_); in getClientTargetSupport()
356 std::lock_guard<std::mutex> guard(mutex_); in getDisplayAttribute()
406 std::lock_guard<std::mutex> guard(mutex_); in getDisplayConfigs()
421 std::lock_guard<std::mutex> guard(mutex_); in getDisplayType()
[all …]
/frameworks/opt/gamesdk/samples/bouncyball/app/src/main/cpp/
DWorkerThread.h44 std::lock_guard<std::mutex> threadLock(mThreadMutex); in ~WorkerThread()
49 std::lock_guard<std::mutex> workLock(mWorkMutex); in run()
60 std::lock_guard<std::mutex> threadLock(mThreadMutex); in launchThread()
69 std::lock_guard<std::mutex> workLock(mWorkMutex); in terminateThread()
88 std::lock_guard<std::mutex> lock(mWorkMutex); in threadMain()
109 std::mutex mThreadMutex;
112 std::mutex mWorkMutex;
/frameworks/av/media/codec2/vndk/
DC2Store.cpp84 std::mutex _mComponentStoreSetLock; // protects the entire updating _mComponentStore and its
86 std::mutex _mComponentStoreReadLock; // must protect only read/write of _mComponentStore
129 std::mutex gIonAllocatorMutex;
190 std::lock_guard<std::mutex> lock(_mComponentStoreSetLock); in setComponentStore()
192 std::lock_guard<std::mutex> lock(_mComponentStoreReadLock); in setComponentStore()
197 std::lock_guard<std::mutex> lock(gIonAllocatorMutex); in setComponentStore()
206 std::lock_guard<std::mutex> lock(gIonAllocatorMutex); in fetchIonAllocator()
211 std::lock_guard<std::mutex> lock(_mComponentStoreReadLock); in fetchIonAllocator()
222 static std::mutex mutex; in fetchGrallocAllocator() local
224 std::lock_guard<std::mutex> lock(mutex); in fetchGrallocAllocator()
[all …]
/frameworks/av/services/oboeservice/
DAAudioClientTracker.cpp76 std::lock_guard<std::mutex> lock(mLock); in registerClient()
93 std::lock_guard<std::mutex> lock(mLock); in unregisterClient()
98 std::lock_guard<std::mutex> lock(mLock); in getStreamCount()
111 std::lock_guard<std::mutex> lock(mLock); in registerClientStream()
128 std::lock_guard<std::mutex> lock(mLock); in unregisterClientStream()
147 std::lock_guard<std::mutex> lock(mLock); in getStreamCount()
153 std::lock_guard<std::mutex> lock(mLock); in registerClientStream()
160 std::lock_guard<std::mutex> lock(mLock); in unregisterClientStream()
174 std::lock_guard<std::mutex> lock(mLock); in binderDied()
/frameworks/base/cmds/statsd/src/config/
DConfigManager.cpp68 lock_guard<mutex> lock(mMutex); in AddListener()
75 lock_guard <mutex> lock(mMutex); in UpdateConfig()
122 lock_guard<mutex> lock(mMutex); in SetConfigReceiver()
127 lock_guard<mutex> lock(mMutex); in RemoveConfigReceiver()
133 lock_guard<mutex> lock(mMutex); in SetActiveConfigsChangedReceiver()
138 lock_guard<mutex> lock(mMutex); in RemoveActiveConfigsChangedReceiver()
145 lock_guard <mutex> lock(mMutex); in RemoveConfig()
191 lock_guard <mutex> lock(mMutex); in RemoveConfigs()
230 lock_guard <mutex> lock(mMutex); in RemoveAllConfigs()
258 lock_guard<mutex> lock(mMutex); in GetAllConfigKeys()
[all …]
/frameworks/av/media/mtp/
DPosixAsyncIO.cpp32 std::mutex gLock;
40 std::unique_lock<std::mutex> lk(gLock); in work_func()
57 std::unique_lock<std::mutex> lk(aiocbp->lock); in work_func()
72 std::unique_lock<std::mutex> lk(gLock); in aio_add()
85 std::unique_lock<std::mutex> lk(gLock); in aiocb()
99 std::unique_lock<std::mutex> lk(gLock); in ~aiocb()
135 std::unique_lock<std::mutex> lk(aiocbp[i]->lock); in aio_suspend()
/frameworks/av/media/bufferpool/2.0/
DClientManager.cpp65 std::mutex mLock;
74 std::lock_guard<std::mutex> lock(mLock); in getCookie()
141 std::mutex mMutex;
155 std::mutex mMutex;
173 std::unique_lock<std::mutex> lock(mCache.mMutex); in registerSender()
179 std::lock_guard<std::mutex> lock(mActive.mMutex); in registerSender()
209 std::lock_guard<std::mutex> lock(mActive.mMutex); in registerSender()
234 std::lock_guard<std::mutex> lock(mActive.mMutex); in registerSender()
288 std::lock_guard<std::mutex> lock(mCache.mMutex); in create()
294 std::lock_guard<std::mutex> lock(mActive.mMutex); in create()
[all …]
/frameworks/native/services/surfaceflinger/
DBarrier.h33 std::lock_guard<std::mutex> lock(mMutex); in open()
40 std::lock_guard<std::mutex> lock(mMutex); in close()
48 std::unique_lock<std::mutex> lock(mMutex); in wait()
52 mutable std::mutex mMutex;
/frameworks/av/media/bufferpool/1.0/
DClientManager.cpp63 std::mutex mLock;
72 std::lock_guard<std::mutex> lock(mLock); in getCookie()
137 std::mutex mMutex;
151 std::mutex mMutex;
166 std::unique_lock<std::mutex> lock(mCache.mMutex); in registerSender()
172 std::lock_guard<std::mutex> lock(mActive.mMutex); in registerSender()
201 std::lock_guard<std::mutex> lock(mActive.mMutex); in registerSender()
226 std::lock_guard<std::mutex> lock(mActive.mMutex); in registerSender()
279 std::lock_guard<std::mutex> lock(mCache.mMutex); in create()
284 std::lock_guard<std::mutex> lock(mActive.mMutex); in create()
[all …]
/frameworks/native/libs/gui/tests/
DRegionSampling_test.cpp67 std::mutex mutable mutex_;
140 std::unique_lock<decltype(mutex)> lk(mutex); in onSampleCollected()
146 std::unique_lock<decltype(mutex)> lk(mutex); in wait_event()
151 std::unique_lock<decltype(mutex)> lk(mutex); in luma()
156 std::unique_lock<decltype(mutex)> lk(mutex); in reset()
162 std::mutex mutex; member
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/stubs/
Dcommon.cc312 CRITICAL_SECTION mutex; member
321 InitializeCriticalSection(&mInternal->mutex); in Mutex()
325 DeleteCriticalSection(&mInternal->mutex); in ~Mutex()
330 EnterCriticalSection(&mInternal->mutex); in Lock()
340 LeaveCriticalSection(&mInternal->mutex); in Unlock()
352 pthread_mutex_t mutex; member
357 pthread_mutex_init(&mInternal->mutex, NULL); in Mutex()
361 pthread_mutex_destroy(&mInternal->mutex); in ~Mutex()
366 int result = pthread_mutex_lock(&mInternal->mutex); in Lock()
373 int result = pthread_mutex_unlock(&mInternal->mutex); in Unlock()
/frameworks/av/services/audioflinger/
DNBAIO_Tee.h219 std::lock_guard<std::mutex> _l(mLock); in set()
231 std::lock_guard<std::mutex> _l(mLock); in setId()
240 std::lock_guard<std::mutex> _l(mLock); in dump()
271 mutable std::mutex mLock;
284 std::lock_guard<std::mutex> _l(mLock); in add()
290 std::lock_guard<std::mutex> _l(mLock); in remove()
298 std::lock_guard<std::mutex> _l(mLock); in dump()
307 std::mutex mLock;
/frameworks/native/services/surfaceflinger/Scheduler/
DIdleTimer.cpp35 std::lock_guard<std::mutex> lock(mMutex); in start()
43 std::lock_guard<std::mutex> lock(mMutex); in stop()
57 std::lock_guard<std::mutex> lock(mMutex); in loop()
76 std::lock_guard<std::mutex> lock(mMutex); in loop()
105 std::lock_guard<std::mutex> lock(mMutex); in reset()
DEventThread.cpp171 std::unique_lock<std::mutex> lock(mMutex); in EventThread()
194 std::lock_guard<std::mutex> lock(mMutex); in ~EventThread()
202 std::lock_guard<std::mutex> lock(mMutex); in setPhaseOffset()
211 std::lock_guard<std::mutex> lock(mMutex); in registerDisplayEventConnection()
240 std::lock_guard<std::mutex> lock(mMutex); in setVsyncRate()
254 std::lock_guard<std::mutex> lock(mMutex); in requestNextVsync()
263 std::lock_guard<std::mutex> lock(mMutex); in onScreenReleased()
273 std::lock_guard<std::mutex> lock(mMutex); in onScreenAcquired()
283 std::lock_guard<std::mutex> lock(mMutex); in onVSyncEvent()
291 std::lock_guard<std::mutex> lock(mMutex); in onHotplugReceived()
[all …]
/frameworks/ml/nn/runtime/
DCallbacks.cpp33 std::lock_guard<std::mutex> hold(mMutex); in notify()
56 std::unique_lock<std::mutex> lock(mMutex); in wait()
101 std::unique_lock<std::mutex> lock(mMutex); in wait()
136 std::lock_guard<std::mutex> lock(mMutex); in bindThread()
156 std::lock_guard<std::mutex> hold(mMutex); in setOnFinish()
184 std::lock_guard<std::mutex> hold(mMutex); in notifyInternal()
/frameworks/native/services/surfaceflinger/TimeStats/
DTimeStats.cpp74 std::lock_guard<std::mutex> lock(mMutex); in miniDump()
85 std::lock_guard<std::mutex> lock(mMutex); in incrementTotalFrames()
94 std::lock_guard<std::mutex> lock(mMutex); in incrementMissedFrames()
103 std::lock_guard<std::mutex> lock(mMutex); in incrementClientCompositionFrames()
264 std::lock_guard<std::mutex> lock(mMutex); in setPostTime()
302 std::lock_guard<std::mutex> lock(mMutex); in setLatchTime()
320 std::lock_guard<std::mutex> lock(mMutex); in setDesiredTime()
338 std::lock_guard<std::mutex> lock(mMutex); in setAcquireTime()
358 std::lock_guard<std::mutex> lock(mMutex); in setAcquireFence()
376 std::lock_guard<std::mutex> lock(mMutex); in setPresentTime()
[all …]
/frameworks/native/libs/gui/
DBufferQueueConsumer.cpp61 std::unique_lock<std::mutex> lock(mCore->mMutex); in acquireBuffer()
288 std::lock_guard<std::mutex> lock(mCore->mMutex); in detachBuffer()
332 std::lock_guard<std::mutex> lock(mCore->mMutex); in attachBuffer()
424 std::lock_guard<std::mutex> lock(mCore->mMutex); in releaseBuffer()
487 std::lock_guard<std::mutex> lock(mCore->mMutex); in connect()
505 std::lock_guard<std::mutex> lock(mCore->mMutex); in disconnect()
529 std::lock_guard<std::mutex> lock(mCore->mMutex); in getReleasedBuffers()
571 std::lock_guard<std::mutex> lock(mCore->mMutex); in setDefaultBufferSize()
585 std::lock_guard<std::mutex> lock(mCore->mMutex); in setMaxBufferCount()
625 std::unique_lock<std::mutex> lock(mCore->mMutex); in setMaxAcquiredBufferCount()
[all …]
/frameworks/base/libs/hwui/tests/unit/
DCommonPoolTests.cpp58 std::mutex mutex; in TEST() local
65 std::unique_lock lock{mutex}; in TEST()
76 std::unique_lock lock{mutex}; in TEST()
87 std::unique_lock lock{mutex}; in TEST()
101 std::mutex lock; in TEST()
/frameworks/native/opengl/libs/EGL/
Degl_cache.cpp80 std::lock_guard<std::mutex> lock(mMutex); in initialize()
118 std::lock_guard<std::mutex> lock(mMutex); in terminate()
127 std::lock_guard<std::mutex> lock(mMutex); in setBlob()
142 std::lock_guard<std::mutex> lock(mMutex); in setBlob()
155 std::lock_guard<std::mutex> lock(mMutex); in getBlob()
170 std::lock_guard<std::mutex> lock(mMutex); in setCacheFilename()

12345678910>>...15