Home
last modified time | relevance | path

Searched refs:mMutex (Results 1 – 25 of 50) sorted by relevance

12

/frameworks/support/renderscript/v8/rs_support/
DrsSignal.cpp28 pthread_mutex_destroy(&mMutex); in ~Signal()
33 int status = pthread_mutex_init(&mMutex, NULL); in init()
42 pthread_mutex_destroy(&mMutex); in init()
52 status = pthread_mutex_lock(&mMutex); in set()
65 status = pthread_mutex_unlock(&mMutex); in set()
75 status = pthread_mutex_lock(&mMutex); in wait()
83 status = pthread_cond_wait(&mCondition, &mMutex); in wait()
86 status = pthread_cond_timeout_np(&mCondition, &mMutex, timeout / 1000000); in wait()
89 status = pthread_cond_wait(&mCondition, &mMutex); in wait()
103 status = pthread_mutex_unlock(&mMutex); in wait()
DrsMutex.cpp27 pthread_mutex_destroy(&mMutex); in ~Mutex()
31 int status = pthread_mutex_init(&mMutex, NULL); in init()
41 status = pthread_mutex_lock(&mMutex); in lock()
51 status = pthread_mutex_unlock(&mMutex); in unlock()
/frameworks/rs/
DrsSignal.cpp28 pthread_mutex_destroy(&mMutex); in ~Signal()
33 int status = pthread_mutex_init(&mMutex, NULL); in init()
42 pthread_mutex_destroy(&mMutex); in init()
52 status = pthread_mutex_lock(&mMutex); in set()
65 status = pthread_mutex_unlock(&mMutex); in set()
75 status = pthread_mutex_lock(&mMutex); in wait()
83 status = pthread_cond_wait(&mCondition, &mMutex); in wait()
86 status = pthread_cond_timeout_np(&mCondition, &mMutex, timeout / 1000000); in wait()
89 status = pthread_cond_wait(&mCondition, &mMutex); in wait()
103 status = pthread_mutex_unlock(&mMutex); in wait()
DrsMutex.cpp27 pthread_mutex_destroy(&mMutex); in ~Mutex()
31 int status = pthread_mutex_init(&mMutex, NULL); in init()
41 status = pthread_mutex_lock(&mMutex); in lock()
51 status = pthread_mutex_unlock(&mMutex); in unlock()
/frameworks/native/include/utils/
DMutex.h80 pthread_mutex_t mMutex; variable
92 pthread_mutex_init(&mMutex, NULL); in Mutex()
95 pthread_mutex_init(&mMutex, NULL); in Mutex()
102 pthread_mutex_init(&mMutex, &attr); in Mutex()
105 pthread_mutex_init(&mMutex, NULL); in Mutex()
109 pthread_mutex_destroy(&mMutex); in ~Mutex()
112 return -pthread_mutex_lock(&mMutex); in lock()
115 pthread_mutex_unlock(&mMutex); in unlock()
118 return -pthread_mutex_trylock(&mMutex); in tryLock()
DCondition.h93 return -pthread_cond_wait(&mCond, &mutex.mMutex); in wait()
100 return -pthread_cond_timedwait_relative_np(&mCond, &mutex.mMutex, &ts); in waitRelative()
118 return -pthread_cond_timedwait(&mCond, &mutex.mMutex, &ts); in waitRelative()
/frameworks/av/media/libmedia/
DJetPlayer.cpp101 Mutex::Autolock l(mMutex); in init()
105 mCondition.wait(mMutex); in init()
122 Mutex::Autolock l(mMutex); in setEventCallback()
130 Mutex::Autolock lock(mMutex); in release()
174 Mutex::Autolock l(mMutex); in render()
182 mMutex.lock(); // [[[[[[[[ LOCK --------------------------------------- in render()
185 mMutex.unlock(); in render()
199 mCondition.wait(mMutex); in render()
224 mMutex.unlock(); // UNLOCK ]]]]]]]] ----------------------------------- in render()
255 mMutex.lock(); in render()
[all …]
/frameworks/av/media/libmediaplayerservice/
DMidiFile.cpp88 Mutex::Autolock l(mMutex); in MidiFile()
91 mCondition.wait(mMutex); in MidiFile()
119 Mutex::Autolock lock(mMutex); in setDataSource()
150 Mutex::Autolock lock(mMutex); in setDataSource()
178 Mutex::Autolock lock(mMutex); in prepare()
208 Mutex::Autolock lock(mMutex); in start()
233 Mutex::Autolock lock(mMutex); in stop()
253 Mutex::Autolock lock(mMutex); in seekTo()
273 Mutex::Autolock lock(mMutex); in pause()
312 Mutex::Autolock lock(mMutex); in getDuration()
[all …]
/frameworks/av/media/libstagefright/
DSurfaceMediaSource.cpp88 Mutex::Autolock lock(mMutex); in getTimestamp()
95 Mutex::Autolock lock(mMutex); in setFrameAvailableListener()
108 Mutex::Autolock lock(mMutex); in dump()
117 Mutex::Autolock lock(mMutex); in setFrameRate()
133 Mutex::Autolock lock(mMutex); in getFrameRate()
141 Mutex::Autolock lock(mMutex); in start()
183 Mutex::Autolock lock(mMutex); in setMaxAcquiredBufferCount()
193 Mutex::Autolock lock(mMutex); in setUseAbsoluteTimestamps()
202 Mutex::Autolock lock(mMutex); in stop()
218 mMediaBuffersAvailableCondition.wait(mMutex); in stop()
[all …]
/frameworks/wilhelm/src/
DThreadPool.c98 err = pthread_mutex_init(&tp->mMutex, (const pthread_mutexattr_t *) NULL); in ThreadPool_init()
175 ok = pthread_mutex_lock(&tp->mMutex); in ThreadPool_deinit_internal()
182 ok = pthread_mutex_unlock(&tp->mMutex); in ThreadPool_deinit_internal()
191 ok = pthread_mutex_lock(&tp->mMutex); in ThreadPool_deinit_internal()
202 ok = pthread_mutex_unlock(&tp->mMutex); in ThreadPool_deinit_internal()
205 ok = pthread_mutex_lock(&tp->mMutex); in ThreadPool_deinit_internal()
208 ok = pthread_mutex_unlock(&tp->mMutex); in ThreadPool_deinit_internal()
223 ok = pthread_mutex_destroy(&tp->mMutex); in ThreadPool_deinit_internal()
280 ok = pthread_mutex_lock(&tp->mMutex); in ThreadPool_add()
284 ok = pthread_mutex_unlock(&tp->mMutex); in ThreadPool_add()
[all …]
Dlocks.c37 ok = pthread_mutex_trylock(&thiz->mMutex); in object_lock_exclusive_()
46 ok = pthread_mutex_lock_timeout_np(&thiz->mMutex, backoffs[i]); in object_lock_exclusive_()
79 ok = pthread_mutex_lock(&thiz->mMutex); in object_lock_exclusive_()
113 ok = pthread_mutex_lock(&thiz->mMutex); in object_lock_exclusive()
131 ok = pthread_mutex_unlock(&thiz->mMutex); in object_unlock_exclusive_()
138 ok = pthread_mutex_unlock(&thiz->mMutex); in object_unlock_exclusive()
228 ok = pthread_mutex_unlock(&thiz->mMutex); in object_unlock_exclusive_attributes_()
286 ok = pthread_cond_wait(&thiz->mCond, &thiz->mMutex); in object_cond_wait_()
297 ok = pthread_cond_wait(&thiz->mCond, &thiz->mMutex); in object_cond_wait()
/frameworks/native/libs/gui/
DBufferQueue.cpp114 Mutex::Autolock lock(mMutex); in isSynchronousMode()
119 Mutex::Autolock lock(mMutex); in setConsumerName()
124 Mutex::Autolock lock(mMutex); in setDefaultBufferFormat()
130 Mutex::Autolock lock(mMutex); in setConsumerUsageBits()
137 Mutex::Autolock lock(mMutex); in setTransformHint()
147 Mutex::Autolock lock(mMutex); in setBufferCount()
201 Mutex::Autolock lock(mMutex); in query()
235 Mutex::Autolock lock(mMutex); in requestBuffer()
273 Mutex::Autolock lock(mMutex); in dequeueBuffer()
353 mDequeueCondition.wait(mMutex); in dequeueBuffer()
[all …]
DSurfaceTexture.cpp143 Mutex::Autolock lock(mMutex); in setDefaultMaxBufferCount()
150 Mutex::Autolock lock(mMutex); in setDefaultBufferSize()
201 Mutex::Autolock lock(mMutex); in updateTexImage()
339 Mutex::Autolock lock(mMutex); in detachFromContext()
396 Mutex::Autolock lock(mMutex); in attachToContext()
553 Mutex::Autolock lock(mMutex); in getTransformMatrix()
558 Mutex::Autolock lock(mMutex); in setFilteringEnabled()
676 Mutex::Autolock lock(mMutex); in getTimestamp()
697 Mutex::Autolock lock(mMutex); in getCurrentBuffer()
702 Mutex::Autolock lock(mMutex); in getCurrentCrop()
[all …]
DConsumerBase.cpp92 Mutex::Autolock lock(mMutex); in getBufferQueue()
101 Mutex::Autolock lock(mMutex); in onFrameAvailable()
112 Mutex::Autolock lock(mMutex); in onBuffersReleased()
132 Mutex::Autolock lock(mMutex); in abandon()
153 Mutex::Autolock lock(mMutex); in setFrameAvailableListener()
164 Mutex::Autolock _l(mMutex); in dump()
196 Mutex::Autolock lock(mMutex); in addReleaseFence()
DSurfaceTextureClient.cpp200 Mutex::Autolock lock(mMutex); in dequeueBuffer()
247 Mutex::Autolock lock(mMutex); in cancelBuffer()
272 Mutex::Autolock lock(mMutex); in lockBuffer_DEPRECATED()
279 Mutex::Autolock lock(mMutex); in queueBuffer()
319 Mutex::Autolock lock(mMutex); in query()
507 Mutex::Autolock lock(mMutex); in connect()
525 Mutex::Autolock lock(mMutex); in disconnect()
546 Mutex::Autolock lock(mMutex); in setUsage()
565 Mutex::Autolock lock(mMutex); in setCrop()
574 Mutex::Autolock lock(mMutex); in setBufferCount()
[all …]
DBufferItemConsumer.cpp45 Mutex::Autolock _l(mMutex); in setName()
55 Mutex::Autolock _l(mMutex); in acquireBuffer()
83 Mutex::Autolock _l(mMutex); in releaseBuffer()
DCpuConsumer.cpp51 Mutex::Autolock _l(mMutex); in setName()
66 Mutex::Autolock _l(mMutex); in lockNextBuffer()
118 Mutex::Autolock _l(mMutex); in unlockBuffer()
/frameworks/av/services/camera/libcameraservice/camera2/
DStreamingProcessor.cpp58 Mutex::Autolock m(mMutex); in setPreviewWindow()
66 Mutex::Autolock m(mMutex); in haveValidPreviewWindow()
76 Mutex::Autolock m(mMutex); in updatePreviewRequest()
108 Mutex::Autolock m(mMutex); in updatePreviewStream()
174 Mutex::Autolock m(mMutex); in deletePreviewStream()
202 Mutex::Autolock m(mMutex); in getPreviewStreamId()
217 Mutex::Autolock m(mMutex); in setRecordingBufferCount()
234 Mutex::Autolock m(mMutex); in updateRecordingRequest()
271 Mutex::Autolock m(mMutex); in updateRecordingStream()
337 Mutex::Autolock m(mMutex); in deleteRecordingStream()
[all …]
/frameworks/wilhelm/src/desktop/
DSndFile.c37 pthread_mutex_lock(&thiz->mMutex); in SndFile_Callback()
39 pthread_mutex_unlock(&thiz->mMutex); in SndFile_Callback()
48 pthread_mutex_unlock(&thiz->mMutex); in SndFile_Callback()
217 pthread_mutex_lock(&audioPlayer->mSndFile.mMutex); in audioPlayerTransportUpdate()
223 pthread_mutex_unlock(&audioPlayer->mSndFile.mMutex); in audioPlayerTransportUpdate()
254 ok = pthread_mutex_init(&thiz->mSndFile.mMutex, (const pthread_mutexattr_t *) NULL); in SndFile_Realize()
283 ok = pthread_mutex_destroy(&thiz->mSndFile.mMutex); in SndFile_Destroy()
/frameworks/native/libs/gui/tests/
DCpuConsumer_test.cpp84 Mutex::Autolock lock(mMutex); in waitForFrame()
86 mCondition.wait(mMutex); in waitForFrame()
92 Mutex::Autolock lock(mMutex); in onFrameAvailable()
98 Mutex mMutex; member in android::CpuConsumerTest::FrameWaiter
115 Mutex::Autolock lock(mMutex); in waitForFrame()
117 mFrameCondition.wait(mMutex); in waitForFrame()
123 Mutex::Autolock lock(mMutex); in onFrameAvailable()
129 Mutex::Autolock lock(mMutex); in onBuffersReleased()
131 mDisconnectCondition.wait(mMutex); in onBuffersReleased()
136 Mutex::Autolock lock(mMutex); in finishDisconnect()
[all …]
DSurfaceTexture_test.cpp511 Mutex::Autolock lock(mMutex); in waitForFrame()
513 mCondition.wait(mMutex); in waitForFrame()
519 Mutex::Autolock lock(mMutex); in onFrameAvailable()
525 Mutex mMutex; member in android::SurfaceTextureGLTest::FrameWaiter
542 Mutex::Autolock lock(mMutex); in waitForFrame()
544 mFrameCondition.wait(mMutex); in waitForFrame()
550 Mutex::Autolock lock(mMutex); in onFrameAvailable()
556 Mutex::Autolock lock(mMutex); in onBuffersReleased()
558 mDisconnectCondition.wait(mMutex); in onBuffersReleased()
563 Mutex::Autolock lock(mMutex); in finishDisconnect()
[all …]
/frameworks/av/media/mtp/
DMtpDevice.cpp280 Mutex::Autolock autoLock(mMutex); in openSession()
306 Mutex::Autolock autoLock(mMutex); in getDeviceInfo()
323 Mutex::Autolock autoLock(mMutex); in getStorageIDs()
338 Mutex::Autolock autoLock(mMutex); in getStorageInfo()
357 Mutex::Autolock autoLock(mMutex); in getObjectHandles()
375 Mutex::Autolock autoLock(mMutex); in getObjectInfo()
395 Mutex::Autolock autoLock(mMutex); in getThumbnail()
410 Mutex::Autolock autoLock(mMutex); in sendObjectInfo()
461 Mutex::Autolock autoLock(mMutex); in sendObject()
487 Mutex::Autolock autoLock(mMutex); in deleteObject()
[all …]
/frameworks/native/opengl/libs/EGL/
Degl_cache.cpp89 Mutex::Autolock lock(mMutex); in initialize()
127 Mutex::Autolock lock(mMutex); in terminate()
137 Mutex::Autolock lock(mMutex); in setBlob()
156 Mutex::Autolock lock(c->mMutex); in setBlob()
176 Mutex::Autolock lock(mMutex); in getBlob()
191 Mutex::Autolock lock(mMutex); in setCacheFilename()
/frameworks/native/libs/utils/
DRefBase.cpp189 Mutex::Autolock _l(mMutex); in printRefs()
227 AutoMutex _l(mMutex); in addRef()
246 AutoMutex _l(mMutex); in removeRef()
286 AutoMutex _l(mMutex); in renameRefsId()
314 mutable Mutex mMutex; member in android::RefBase::weakref_impl
/frameworks/av/services/camera/libcameraservice/
DCamera2Device.cpp593 Mutex::Autolock l(mMutex); in ~MetadataQueue()
621 Mutex::Autolock l(mMutex); in enqueue()
631 Mutex::Autolock l(mMutex); in getBufferCount()
644 Mutex::Autolock l(mMutex); in dequeue()
706 Mutex::Autolock l(mMutex); in waitForBuffer()
709 res = notEmpty.waitRelative(mMutex,timeout); in waitForBuffer()
717 Mutex::Autolock l(mMutex); in waitForDequeue()
722 res = mNewRequestId.waitRelative(mMutex, timeout); in waitForDequeue()
735 Mutex::Autolock l(mMutex); in setStreamSlot()
767 Mutex::Autolock l(mMutex); in setStreamSlot()
[all …]

12