Home
last modified time | relevance | path

Searched refs:lk (Results 1 – 25 of 29) sorted by relevance

12

/hardware/interfaces/broadcastradio/common/utils/
DWorkerThread.cpp38 lock_guard<mutex> lk(mMut); in ~WorkerThread() local
48 lock_guard<mutex> lk(mMut); in schedule() local
54 lock_guard<mutex> lk(mMut); in cancelAll() local
60 unique_lock<mutex> lk(mMut); in threadLoop() local
62 mCond.wait(lk); in threadLoop()
68 mCond.wait_until(lk, task.when); in threadLoop()
73 lk.unlock(); // what() might need to schedule another task in threadLoop()
/hardware/qcom/sdm845/display/libhistogram/
Dringbuffer.cpp61 std::unique_lock<decltype(mutex)> lk(mutex); in insert() local
73 std::unique_lock<decltype(mutex)> lk(mutex); in resize() local
83 std::unique_lock<decltype(mutex)> lk(mutex); in collect_cumulative() local
90 std::unique_lock<decltype(mutex)> lk(mutex); in collect_ringbuffer_all() local
91 return collect_max(ringbuffer.size(), lk); in collect_ringbuffer_all()
96 std::unique_lock<decltype(mutex)> lk(mutex); in collect_after() local
97 return collect_max_after(timestamp, ringbuffer.size(), lk); in collect_after()
101 std::unique_lock<decltype(mutex)> lk(mutex); in collect_max() local
102 return collect_max(max_frames, lk); in collect_max()
107 std::unique_lock<decltype(mutex)> lk(mutex); in collect_max_after() local
[all …]
Dhistogram_collector.cpp382 std::unique_lock<decltype(thread_control)> lk(thread_control); in start() local
397 std::unique_lock<decltype(thread_control)> lk(thread_control); in stop() local
/hardware/interfaces/broadcastradio/1.1/default/
DTuner.cpp71 lock_guard<mutex> lk(mMut); in forceClose() local
106 lock_guard<mutex> lk(mMut); in setConfiguration() local
117 lock_guard<mutex> lk(mMut); in setConfiguration() local
127 lock_guard<mutex> lk(mMut); in getConfiguration() local
178 lock_guard<mutex> lk(mMut); in scan() local
223 lock_guard<mutex> lk(mMut); in scan() local
233 lock_guard<mutex> lk(mMut); in step() local
252 lock_guard<mutex> lk(mMut); in step() local
276 lock_guard<mutex> lk(mMut); in tune() local
284 lock_guard<mutex> lk(mMut); in tuneByProgramSelector() local
[all …]
DVirtualRadio.cpp57 lock_guard<mutex> lk(mMut); in getProgramList() local
62 lock_guard<mutex> lk(mMut); in getProgram() local
DBroadcastRadio.cpp135 lock_guard<mutex> lk(mMut); in openTuner() local
/hardware/google/pixel/power-libperfmgr/
DInteractionHandler.cpp63 std::lock_guard<std::mutex> lk(mLock); in Init() local
87 std::unique_lock<std::mutex> lk(mLock); in Exit() local
93 lk.unlock(); in Exit()
128 std::lock_guard<std::mutex> lk(mLock); in Acquire() local
170 std::lock_guard<std::mutex> lk(mLock); in Release() local
238 std::unique_lock<std::mutex> lk(mLock, std::defer_lock); in Routine() local
241 lk.lock(); in Routine()
242 mCond.wait(lk, [&] { return mState != INTERACTION_STATE_IDLE; }); in Routine()
246 lk.unlock(); in Routine()
/hardware/interfaces/broadcastradio/common/vts/utils/
Dcall-barrier.cpp28 lock_guard<mutex> lk(mMut); in call() local
34 unique_lock<mutex> lk(mMut); in waitForCall() local
38 auto status = mCond.wait_for(lk, timeout); in waitForCall()
/hardware/interfaces/broadcastradio/common/tests/
DWorkerThread_test.cpp82 lock_guard<mutex> lk(mut); in TEST() local
89 lock_guard<mutex> lk(mut); in TEST() local
96 lock_guard<mutex> lk(mut); in TEST() local
103 lock_guard<mutex> lk(mut); in TEST() local
110 lock_guard<mutex> lk(mut); in TEST() local
/hardware/interfaces/broadcastradio/2.0/default/
DTunerSession.cpp95 lock_guard<mutex> lk(mMut); in tune() local
112 lock_guard<mutex> lk(mMut); in tune() local
123 lock_guard<mutex> lk(mMut); in scan() local
166 lock_guard<mutex> lk(mMut); in scan() local
176 lock_guard<mutex> lk(mMut); in step() local
205 lock_guard<mutex> lk(mMut); in step() local
224 lock_guard<mutex> lk(mMut); in cancel() local
234 lock_guard<mutex> lk(mMut); in startProgramListUpdates() local
245 lock_guard<mutex> lk(mMut); in startProgramListUpdates() local
291 lock_guard<mutex> lk(mMut); in close() local
DVirtualRadio.cpp63 lock_guard<mutex> lk(mMut); in getProgramList() local
68 lock_guard<mutex> lk(mMut); in getProgram() local
DBroadcastRadio.cpp72 lock_guard<mutex> lk(mMut); in getAmFmConfig() local
114 lock_guard<mutex> lk(mMut); in openSession() local
/hardware/interfaces/camera/device/3.5/default/
DExternalCameraDeviceSession.cpp96 std::lock_guard<std::mutex> lk(mLock); in requestBufferStart() local
112 std::unique_lock<std::mutex> lk(mLock); in waitForBufferRequestDone() local
120 auto st = mRequestDoneCond.wait_for(lk, timeout); in waitForBufferRequestDone()
134 std::unique_lock<std::mutex> lk(mLock); in waitForNextRequest() local
141 auto st = mRequestCond.wait_for(lk, timeout); in waitForNextRequest()
182 std::unique_lock<std::mutex> lk(mLock); in threadLoop() local
214 lk.unlock(); in threadLoop()
219 lk.lock(); in threadLoop()
247 lk.unlock(); in threadLoop()
/hardware/libhardware/modules/sensors/dynamic_sensor/
DDynamicSensorManager.cpp85 std::lock_guard<std::mutex> lk(mLock); in activate() local
126 std::lock_guard<std::mutex> lk(mFifoLock); in poll() local
131 std::lock_guard<std::mutex> lk(mLock); in registerSensor() local
158 std::lock_guard<std::mutex> lk(mLock); in unregisterSensor() local
183 std::lock_guard<std::mutex> lk(mLock); in submitEvent() local
219 std::lock_guard<std::mutex> lk(mFifoLock); in submitEvent() local
DDynamicSensorManager.h98 std::lock_guard<std::mutex> lk(mLock); in operateSensor()
DDummyDynamicAccelDaemon.cpp118 std::lock_guard<std::mutex> lk(mLock); in enable() local
/hardware/interfaces/broadcastradio/common/vts/utils/include/broadcastradio-vts-utils/
Dmock-timeout.h78 std::lock_guard<std::mutex> lk(egmock_mut_##Method); \
145 std::unique_lock<std::mutex> lk((obj).egmock_mut_##Method); \
147 auto status = (obj).egmock_cond_##Method.wait_for(lk, timeout); \
/hardware/interfaces/tests/multithread/1.0/default/
DMultithread.cpp35 std::unique_lock<std::mutex> lk(mCvMutex); in runNewThread() local
42 bool noTimeout = mCv.wait_for(lk, kTimeoutDuration, in runNewThread()
/hardware/interfaces/camera/device/3.4/default/
DExternalCameraDeviceSession.cpp284 std::lock_guard<std::mutex> lk(mV4l2BufferLock); in dumpState() local
607 int ExternalCameraDeviceSession::waitForV4L2BufferReturnLocked(std::unique_lock<std::mutex>& lk) { in waitForV4L2BufferReturnLocked() argument
611 auto st = mV4L2BufferReturned.wait_for(lk, timeout); in waitForV4L2BufferReturnLocked()
719 std::unique_lock<std::mutex> lk(mV4l2BufferLock); in processOneCaptureRequest() local
722 int waitRet = waitForV4L2BufferReturnLocked(lk); in processOneCaptureRequest()
765 std::lock_guard<std::mutex> lk(mInflightFramesLock); in processOneCaptureRequest() local
825 std::lock_guard<std::mutex> lk(mInflightFramesLock); in processCaptureRequestError() local
881 std::lock_guard<std::mutex> lk(mInflightFramesLock); in processCaptureResult() local
1836 std::unique_lock<std::mutex> lk(mBufferLock); in threadLoop() local
1842 lk.unlock(); in threadLoop()
[all …]
DExternalCameraUtils.cpp45 std::lock_guard<std::mutex> lk(mLock); in map() local
62 std::lock_guard<std::mutex> lk(mLock); in unmap() local
85 std::lock_guard<std::mutex> lk(mLock); in allocate() local
122 std::lock_guard<std::mutex> lk(mLock); in getCroppedLayout() local
/hardware/google/pixel/usb/
DMonitorFfs.cpp250 std::unique_lock<std::mutex> lk(mLock); in waitForPullUp() local
255 if (mCv.wait_for(lk, timeout_ms * 1ms, [] { return gadgetPullup; })) { in waitForPullUp()
/hardware/qcom/msm8994/kernel-headers/linux/
Dfuse.h374 struct fuse_file_lock lk; member
380 struct fuse_file_lock lk; member
/hardware/qcom/msm8996/kernel-headers/linux/
Dfuse.h389 struct fuse_file_lock lk; member
395 struct fuse_file_lock lk; member
/hardware/qcom/msm8996/original-kernel-headers/linux/
Dfuse.h562 struct fuse_file_lock lk; member
568 struct fuse_file_lock lk; member
/hardware/qcom/msm8994/original-kernel-headers/linux/
Dfuse.h541 struct fuse_file_lock lk; member
547 struct fuse_file_lock lk; member

12