Searched refs:LockGuard (Results 1 – 10 of 10) sorted by relevance
30 class LockGuard {32 explicit LockGuard(Lock* lock) : lock_(lock) { in LockGuard() function36 LockGuard(LockGuard&& o) noexcept { in LockGuard() function41 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() function63 LockGuard(LockGuard&& o) noexcept { in LockGuard() function70 LockGuard(const LockGuard&) = delete;[all …]
170 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()
112 template <typename M> class LockGuard {114 explicit LockGuard(M& mutex) : mutex_(mutex) { in LockGuard() function118 ~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() function136 ~LockGuard() { in ~LockGuard()146 LockGuard(const LockGuard&);147 LockGuard& operator= (const LockGuard&);
39 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()
47 cvd::LockGuard<cvd::Mutex> guard(lock_); in IsMicrophoneMuted()
127 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()
68 vsoc::LockGuard<vsoc::layout::GuestLock>(&data()->new_buffer_lock); in AllocateBuffer()92 vsoc::LockGuard<vsoc::layout::GuestLock>(&data()->new_buffer_lock); in AllocateBuffer()
35 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()
27 using cvd::LockGuard;126 LockGuard<Mutex> lock(mutex_); in RecordSetEnd()189 LockGuard<Mutex> lock(mutex_); in SynchronizedDump()
75 ::cvd::LockGuard< ::cvd::Mutex> lock(mEmulatedCamerasMutex); in getOrCreateFakeCamera()