Home
last modified time | relevance | path

Searched refs:LockGuard (Results 1 – 10 of 10) sorted by relevance

/device/google/cuttlefish_common/common/vsoc/lib/
Dlock_guard.h30 class LockGuard {
32 explicit LockGuard(Lock* lock) : lock_(lock) { in LockGuard() function
36 LockGuard(LockGuard&& o) noexcept { in LockGuard() function
41 LockGuard(const LockGuard&) = delete;
42 LockGuard& operator=(const LockGuard&) = delete;
44 ~LockGuard() { in ~LockGuard()
55 class LockGuard<::vsoc::layout::GuestAndHostLock> {
59 LockGuard(Lock* lock, RegionView* region) : lock_(lock), region_(region) { in LockGuard() function
63 LockGuard(LockGuard&& o) noexcept { in LockGuard() function
70 LockGuard(const LockGuard&) = delete;
[all …]
Dregion_view.h170 LockGuard<T> make_lock_guard(T* lock) { in make_lock_guard()
171 return LockGuard<T>(lock); in make_lock_guard()
174 LockGuard<::vsoc::layout::GuestAndHostLock> make_lock_guard( in make_lock_guard()
176 return LockGuard<::vsoc::layout::GuestAndHostLock>(l, this); in make_lock_guard()
/device/google/cuttlefish_common/common/libs/threads/
Dcuttlefish_thread.h112 template <typename M> class LockGuard {
114 explicit LockGuard(M& mutex) : mutex_(mutex) { in LockGuard() function
118 ~LockGuard() { in ~LockGuard()
125 LockGuard(const LockGuard&);
126 LockGuard& operator= (const LockGuard&);
130 template<> class LockGuard<pthread_mutex_t> {
132 explicit LockGuard(pthread_mutex_t& mutex) : mutex_(mutex), unlock_(false) { in LockGuard() function
136 ~LockGuard() { in ~LockGuard()
146 LockGuard(const LockGuard&);
147 LockGuard& operator= (const LockGuard&);
/device/google/cuttlefish_common/guest/hals/audio/legacy/
Dvsoc_audio.cpp39 using cvd::LockGuard;
49 LockGuard<Mutex> guard(lock_); in Close()
85 LockGuard<Mutex> guard(lock_); in SetMicMute()
92 LockGuard<Mutex> guard(lock_); in GetMicMute()
109 LockGuard<Mutex> guard(lock_); in OpenInputStream()
127 LockGuard<Mutex> guard(lock_); in CloseInputStream()
153 LockGuard<Mutex> guard(lock_); in OpenOutputStream()
173 LockGuard<Mutex> guard(lock_); in CloseOutputStream()
183 LockGuard<Mutex> guard(lock_); in Dump()
Dvsoc_audio.h47 cvd::LockGuard<cvd::Mutex> guard(lock_); in IsMicrophoneMuted()
/device/google/cuttlefish_common/guest/commands/usbforward/
Dusb_server.cpp127 cvd::LockGuard<cvd::Mutex> lock(write_mutex_); in HandleDeviceList()
147 cvd::LockGuard<cvd::Mutex> lock(write_mutex_); in HandleAttach()
153 cvd::LockGuard<cvd::Mutex> lock(write_mutex_); in HandleHeartbeat()
195 cvd::LockGuard<cvd::Mutex> lock(requests_mutex_); in HandleControlTransfer()
238 cvd::LockGuard<cvd::Mutex> lock(requests_mutex_); in HandleDataTransfer()
252 cvd::LockGuard<cvd::Mutex> lock(write_mutex_); in OnTransferComplete()
273 cvd::LockGuard<cvd::Mutex> lock(requests_mutex_); in OnTransferComplete()
/device/google/cuttlefish_common/guest/vsoc/lib/
Dgralloc_region_view.cpp68 vsoc::LockGuard<vsoc::layout::GuestLock>(&data()->new_buffer_lock); in AllocateBuffer()
92 vsoc::LockGuard<vsoc::layout::GuestLock>(&data()->new_buffer_lock); in AllocateBuffer()
/device/google/cuttlefish_common/guest/hals/sensors/
Dvsoc_sensors.cpp35 using cvd::LockGuard;
153 LockGuard<Mutex> guard(sensor_state_lock_); in Activate()
183 LockGuard<Mutex> guard(sensor_state_lock_); in SetDelay()
224 LockGuard<Mutex> guard(sensor_state_lock_); in Poll()
298 LockGuard<Mutex> guard(sensor_state_lock_); in Receiver()
375 LockGuard<Mutex> guard(sensor_state_lock_); in Receiver()
/device/google/cuttlefish_common/guest/hals/hwcomposer/vsoc/
Dstats_keeper.cpp27 using cvd::LockGuard;
126 LockGuard<Mutex> lock(mutex_); in RecordSetEnd()
189 LockGuard<Mutex> lock(mutex_); in SynchronizedDump()
/device/google/cuttlefish_common/guest/hals/camera/
DEmulatedCameraFactory.cpp75 ::cvd::LockGuard< ::cvd::Mutex> lock(mEmulatedCamerasMutex); in getOrCreateFakeCamera()