Home
last modified time | relevance | path

Searched defs:lock (Results 1 – 25 of 87) sorted by relevance

1234

/device/generic/goldfish-opengl/android-emu/android/base/synchronization/
DAndroidConditionVariable.h74 void wait(StaticLock* lock, Predicate pred) { in wait()
81 void wait(AutoLock* lock, Predicate pred) { in wait()
174 inline void ConditionVariable::signalAndUnlock(StaticLock* lock) { in signalAndUnlock()
178 inline void ConditionVariable::signalAndUnlock(AutoLock* lock) { in signalAndUnlock()
183 inline void ConditionVariable::broadcastAndUnlock(StaticLock* lock) { in broadcastAndUnlock()
187 inline void ConditionVariable::broadcastAndUnlock(AutoLock* lock) { in broadcastAndUnlock()
192 inline void ConditionVariable::signalAndUnlock(StaticLock* lock) { in signalAndUnlock()
196 inline void ConditionVariable::signalAndUnlock(AutoLock* lock) { in signalAndUnlock()
200 inline void ConditionVariable::broadcastAndUnlock(StaticLock* lock) { in broadcastAndUnlock()
204 inline void ConditionVariable::broadcastAndUnlock(AutoLock* lock) { in broadcastAndUnlock()
DAndroidMessageChannel.cpp24 AutoLock lock(mLock); in size() local
29 android::base::guest::AutoLock lock(mLock); in stop() local
37 AutoLock lock(mLock); in isStopped() local
42 AutoLock lock(mLock); in waitForEmpty() local
DAndroidLock.h54 void lock() { in lock() function
152 AutoLock(StaticLock& lock) : mLock(lock) { mLock.lock(); } in AutoLock()
158 void lock() { in lock() function
189 AutoWriteLock(ReadWriteLock& lock) : mLock(lock) { mLock.lockWrite(); } in AutoWriteLock()
218 AutoReadLock(ReadWriteLock& lock) : mLock(lock) { mLock.lockRead(); } in AutoReadLock()
/device/generic/goldfish/gnss/
Ddata_sink.cpp23 std::unique_lock<std::mutex> lock(mtx); in gnssLocation() local
30 std::unique_lock<std::mutex> lock(mtx); in gnssSvStatus() local
37 std::unique_lock<std::mutex> lock(mtx); in gnssStatus() local
45 std::unique_lock<std::mutex> lock(mtx); in gnssNmea() local
52 std::unique_lock<std::mutex> lock(mtx); in setCallback20() local
57 std::unique_lock<std::mutex> lock(mtx); in cleanup() local
62 std::unique_lock<std::mutex> lock(mtx); in start() 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
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
127 std::unique_lock<std::mutex> lock(mMutex); in getConsumeChunk() local
140 size_t RingBuffer::consume(const ContiniousLockedChunk &lock, size_t size) { in consume()
/device/google/cuttlefish/host/libs/wayland/
Dwayland_surface.cpp25 std::unique_lock<std::mutex> lock(state_mutex_); in SetRegion() local
30 std::unique_lock<std::mutex> lock(state_mutex_); in Attach() local
35 std::unique_lock<std::mutex> lock(state_mutex_); in Commit() local
40 std::unique_lock<std::mutex> lock(callback_mutex_); in Commit() local
72 std::unique_lock<std::mutex> lock(callback_mutex_); in OnFrameAfter() local
/device/generic/goldfish-opengl/shared/OpenglCodecCommon/
DPortableMutex.h38 static __inline__ void mutex_lock(mutex_t* lock) { in mutex_lock()
42 static __inline__ void mutex_unlock(mutex_t* lock) { in mutex_unlock()
46 static __inline__ int mutex_init(mutex_t* lock) { in mutex_init()
50 static __inline__ void mutex_destroy(mutex_t* lock) { in mutex_destroy()
/device/generic/goldfish/wifi/wifi_hal/
Dhalstate.cpp24 std::unique_lock<std::mutex> lock(mStateMutex); in init() local
51 std::unique_lock<std::mutex> lock(mStateMutex); in stop() local
81 std::unique_lock<std::mutex> lock(mStateMutex); in eventLoop() local
99 std::unique_lock<std::mutex> lock(mStateMutex); in onStop() local
Dnetlink.cpp91 std::unique_lock<std::mutex> lock(mStopHandlerMutex); in stop() local
138 std::unique_lock<std::mutex> lock(mStopHandlerMutex); in eventLoop() local
160 std::unique_lock<std::mutex> lock(mHandlersMutex); in sendMessage() local
253 std::unique_lock<std::mutex> lock(mHandlersMutex); in notifyHandler() local
/device/google/cuttlefish/guest/hals/hwcomposer/cutf_cvm/
DHWC2.cpp340 std::unique_lock<std::recursive_timed_mutex> lock(mStateMutex); in createVirtualDisplay() local
361 std::unique_lock<std::recursive_timed_mutex> lock(mStateMutex); in destroyVirtualDisplay() local
390 std::unique_lock<std::recursive_timed_mutex> lock(mStateMutex, in dump() local
449 std::unique_lock<std::recursive_timed_mutex> lock(mStateMutex); in registerCallback() local
557 std::unique_lock<std::recursive_mutex> lock(mStateMutex); in acceptChanges() local
585 std::unique_lock<std::recursive_mutex> lock(mStateMutex); in createLayer() local
596 std::unique_lock<std::recursive_mutex> lock(mStateMutex); in destroyLayer() local
619 std::unique_lock<std::recursive_mutex> lock(mStateMutex); in getActiveConfig() local
634 std::unique_lock<std::recursive_mutex> lock(mStateMutex); in getAttribute() local
649 std::unique_lock<std::recursive_mutex> lock(mStateMutex); in getChangedCompositionTypes() local
[all …]
/device/generic/goldfish/sensors/
Dmultihal_sensors.cpp118 std::unique_lock<std::mutex> lock(m_mtx); in setOperationMode() local
134 std::unique_lock<std::mutex> lock(m_mtx); in activate() local
178 std::unique_lock<std::mutex> lock(m_mtx); in batch() local
194 std::unique_lock<std::mutex> lock(m_mtx); in flush() local
216 std::unique_lock<std::mutex> lock(m_mtx); in injectSensorData() local
231 std::unique_lock<std::mutex> lock(m_mtx); in initialize() local
242 std::unique_lock<std::mutex> lock(m_mtx); in postSensorEvent() local
282 std::unique_lock<std::mutex> lock(m_mtx); in batchThread() local
/device/generic/goldfish/camera/fake-pipeline2/
DJpegCompressor.cpp42 Mutex::Autolock lock(mMutex); in ~JpegCompressor() local
60 Mutex::Autolock lock(mMutex); in start() local
89 Mutex::Autolock lock(mMutex); in compressSynchronous() local
207 Mutex::Autolock lock(mBusyMutex); in isStreamInUse() local
218 Mutex::Autolock lock(mBusyMutex); in waitForDone() local
227 Mutex::Autolock lock(mBusyMutex); in cleanUp() local
/device/google/contexthub/firmware/os/core/
Dtrylock.c21 void trylockInit(struct TryLock *lock) in trylockInit()
26 void trylockRelease(struct TryLock *lock) in trylockRelease()
31 bool trylockTryTake(struct TryLock *lock) in trylockTryTake()
/device/generic/goldfish-opengl/system/hwc2/
DEmuHWC2.cpp371 std::unique_lock<std::mutex> lock(mStateMutex); in registerCallback() local
470 std::unique_lock<std::mutex> lock(mStateMutex); in acceptChanges() local
498 std::unique_lock<std::mutex> lock(mStateMutex); in createLayer() local
510 std::unique_lock<std::mutex> lock(mStateMutex); in destroyLayer() local
534 std::unique_lock<std::mutex> lock(mStateMutex); in getActiveConfig() local
551 std::unique_lock<std::mutex> lock(mStateMutex); in getDisplayAttribute() local
567 std::unique_lock<std::mutex> lock(mStateMutex); in getChangedCompositionTypes() local
600 std::unique_lock<std::mutex> lock(mStateMutex); in getColorModes() local
618 std::unique_lock<std::mutex> lock(mStateMutex); in getConfigs() local
654 std::unique_lock<std::mutex> lock(mStateMutex); in getName() local
[all …]
/device/google/cuttlefish/guest/hals/camera/fake-pipeline2/
DJpegCompressor.cpp35 JpegCompressor::~JpegCompressor() { Mutex::Autolock lock(mMutex); } in ~JpegCompressor() local
53 Mutex::Autolock lock(mMutex); in start() local
79 Mutex::Autolock lock(mMutex); in compressSynchronous() local
210 Mutex::Autolock lock(mBusyMutex); in isStreamInUse() local
221 Mutex::Autolock lock(mBusyMutex); in waitForDone() local
242 Mutex::Autolock lock(mBusyMutex); in cleanUp() local
DSensor.cpp140 Mutex::Autolock lock(mControlMutex); in setExposureTime() local
146 Mutex::Autolock lock(mControlMutex); in setFrameDuration() local
152 Mutex::Autolock lock(mControlMutex); in setSensitivity() local
158 Mutex::Autolock lock(mControlMutex); in setDestinationBuffers() local
163 Mutex::Autolock lock(mControlMutex); in setFrameNumber() local
169 Mutex::Autolock lock(mControlMutex); in waitForVSync() local
181 Mutex::Autolock lock(mReadoutMutex); in waitForNewFrame() local
203 Mutex::Autolock lock(mControlMutex); in setSensorListener() local
233 Mutex::Autolock lock(mControlMutex); in threadLoop() local
274 Mutex::Autolock lock(mReadoutMutex); in threadLoop() local
/device/generic/goldfish-opengl/android-emu/android/base/threads/
DAndroidWorkPool.cpp83 AutoLock lock(mLock); in decrementBroadcast() local
214 AutoLock lock(mLock); in acquire() local
227 AutoLock lock(mLock); in run() local
251 AutoLock lock(mLock); in shouldCleanupWaitGroup() local
272 AutoLock lock(mLock); in exit() local
289 AutoLock lock(mLock); in threadFunc() local
294 AutoLock lock(mLock); in threadFunc() local
310 AutoLock lock(mLock); in doRun() local
343 AutoLock lock(mLock); in schedule() local
385 AutoLock lock(mLock); in waitAny() local
[all …]
/device/generic/goldfish/camera/
DEmulatedFakeCamera2.cpp685 Mutex::Autolock lock(mInputMutex); in readyToRun() local
697 Mutex::Autolock lock(mInputMutex); in waitUntilRunning() local
708 Mutex::Autolock lock(mInputMutex); in newRequestAvailable() local
717 Mutex::Autolock lock(mInternalsMutex); in isStreamInUse() local
727 Mutex::Autolock lock(mInputMutex); in getInProgressCount() local
736 Mutex::Autolock lock(mInputMutex); in threadLoop() local
767 Mutex::Autolock lock(mInputMutex); in threadLoop() local
771 Mutex::Autolock lock(mInputMutex); in threadLoop() local
948 Mutex::Autolock lock(mInputMutex); in configureNextCapture() local
1050 Mutex::Autolock lock(mInputMutex); in configureNextReprocess() local
[all …]
DWorkerThread.cpp41 Mutex::Autolock lock(mRunningMutex); in startThread() local
50 Mutex::Autolock lock(mRunningMutex); in stopThread() local
80 Mutex::Autolock lock(mRunningMutex); in threadLoop() local
DEmulatedCameraDevice.cpp236 FrameLock lock(*this); in getCurrentFrame() local
264 FrameLock lock(*this); in getCurrentPreviewFrame() local
498 Mutex::Autolock lock(mRunningMutex); in waitForFrameOrTimeout() local
599 Mutex::Autolock lock(mRequestMutex); in requestRestart() local
613 Mutex::Autolock lock(mRequestMutex); in checkRestartRequest() local
668 Mutex::Autolock lock(mRunningMutex); in inWorkerThread() local
686 Mutex::Autolock lock(mBufferMutex); in inWorkerThread() local
/device/google/cuttlefish/guest/hals/camera/
DEmulatedFakeCamera2.cpp687 Mutex::Autolock lock(mInputMutex); in readyToRun() local
699 Mutex::Autolock lock(mInputMutex); in waitUntilRunning() local
710 Mutex::Autolock lock(mInputMutex); in newRequestAvailable() local
719 Mutex::Autolock lock(mInternalsMutex); in isStreamInUse() local
729 Mutex::Autolock lock(mInputMutex); in getInProgressCount() local
738 Mutex::Autolock lock(mInputMutex); in threadLoop() local
767 Mutex::Autolock lock(mInputMutex); in threadLoop() local
771 Mutex::Autolock lock(mInputMutex); in threadLoop() local
938 Mutex::Autolock lock(mInputMutex); in configureNextCapture() local
1036 Mutex::Autolock lock(mInputMutex); in configureNextReprocess() local
[all …]
/device/google/cuttlefish/host/frontend/webrtc/
Ddisplay_handler.cpp45 std::lock_guard<std::mutex> lock(last_buffer_mutex_); in Loop() local
59 std::lock_guard<std::mutex> lock(last_buffer_mutex_); in SendLastFrame() local
70 std::lock_guard<std::mutex> lock(next_frame_mutex_); in SendLastFrame() local
/device/generic/goldfish/camera/qemu-pipeline3/
DQemuSensor.cpp137 Mutex::Autolock lock(mControlMutex); in setFrameDuration() local
143 Mutex::Autolock lock(mControlMutex); in setDestinationBuffers() local
148 Mutex::Autolock lock(mControlMutex); in setFrameNumber() local
154 Mutex::Autolock lock(mControlMutex); in waitForVSync() local
166 Mutex::Autolock lock(mReadoutMutex); in waitForNewFrame() local
188 Mutex::Autolock lock(mControlMutex); in setQemuSensorListener() local
216 Mutex::Autolock lock(mControlMutex); in threadLoop() local
261 Mutex::Autolock lock(mReadoutMutex); in threadLoop() local
/device/linaro/hikey/hifi/xaf/host-apf/include/os/xos/
Dxf-osal.h47 static inline void __xf_lock_init(xf_lock_t *lock) in __xf_lock_init()
53 static inline void __xf_lock(xf_lock_t *lock) in __xf_lock()
59 static inline void __xf_unlock(xf_lock_t *lock) in __xf_unlock()
/device/google/cuttlefish/host/commands/run_cvd/
Dprocess_monitor.cc85 std::lock_guard<std::mutex> lock(processes_mutex_); in MonitorExistingSubprocess() local
102 std::lock_guard<std::mutex> lock(processes_mutex_); in StopMonitoredProcesses() local
171 std::lock_guard<std::mutex> lock(processes_mutex_); in MonitorRoutine() local
198 std::lock_guard<std::mutex> lock(processes_mutex_); in MonitorRoutine() local

1234